chore: update events

This commit is contained in:
David Ralph
2021-06-21 23:03:47 +01:00
parent 7990286e9a
commit d7784e7414
24 changed files with 44 additions and 35 deletions

View File

@@ -25,7 +25,7 @@ export default class Notes extends React.PureComponent {
};
pin() {
window.analytics.postEvent('featureUpdate', 'Feature notes pin used');
window.analytics.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('featureUpdate', 'Feature notes copy used');
window.analytics.postEvent('feature', 'Notes copied');
// this.state.notes doesnt work for some reason
navigator.clipboard.writeText(localStorage.getItem('notes'));
toast(window.language.toasts.notes);