mirror of
https://github.com/mue/mue.git
synced 2026-07-13 12:07:45 +02:00
feat: locally store stats so users can see them (no ui yet)
This commit is contained in:
@@ -25,7 +25,7 @@ export default class Notes extends React.PureComponent {
|
||||
};
|
||||
|
||||
pin() {
|
||||
window.analytics.postEvent('feature', 'Notes pin');
|
||||
window.stats.postEvent('feature', 'Notes pin');
|
||||
document.getElementById('noteContainer').classList.toggle('visibilityshow');
|
||||
|
||||
if (localStorage.getItem('notesPinned') === 'true') {
|
||||
@@ -36,7 +36,7 @@ export default class Notes extends React.PureComponent {
|
||||
}
|
||||
|
||||
copy() {
|
||||
window.analytics.postEvent('feature', 'Notes copied');
|
||||
window.stats.postEvent('feature', 'Notes copied');
|
||||
// this.state.notes doesnt work for some reason
|
||||
navigator.clipboard.writeText(localStorage.getItem('notes'));
|
||||
toast(window.language.toasts.notes);
|
||||
|
||||
Reference in New Issue
Block a user