mirror of
https://github.com/mue/mue.git
synced 2026-07-21 07:54:13 +02:00
feat: locally store stats so users can see them (no ui yet)
This commit is contained in:
@@ -150,13 +150,13 @@ export default class Quote extends React.PureComponent {
|
||||
}
|
||||
|
||||
copyQuote = () => {
|
||||
window.analytics.postEvent('feature', 'Quote copied');
|
||||
window.stats.postEvent('feature', 'Quote copied');
|
||||
navigator.clipboard.writeText(`${this.state.quote} - ${this.state.author}`);
|
||||
toast(window.language.toasts.quote);
|
||||
}
|
||||
|
||||
tweetQuote = () => {
|
||||
window.analytics.postEvent('feature', 'Quote tweet');
|
||||
window.stats.postEvent('feature', 'Quote tweet');
|
||||
window.open(`https://twitter.com/intent/tweet?text=${this.state.quote} - ${this.state.author} on @getmue`, '_blank').focus();
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ export default class Quote extends React.PureComponent {
|
||||
});
|
||||
}
|
||||
|
||||
window.analytics.postEvent('feature', 'Quote favourite');
|
||||
window.stats.postEvent('feature', 'Quote favourite');
|
||||
}
|
||||
|
||||
init() {
|
||||
|
||||
Reference in New Issue
Block a user