mirror of
https://github.com/mue/mue.git
synced 2026-07-18 06:24:17 +02:00
feat: locally store stats so users can see them (no ui yet)
This commit is contained in:
@@ -21,7 +21,7 @@ export default class Switch extends React.PureComponent {
|
||||
checked: (this.state.checked === true) ? false : true
|
||||
});
|
||||
|
||||
window.analytics.postEvent('setting', `${this.props.name} ${(this.state.checked === true) ? 'enabled' : 'disabled'}`);
|
||||
window.stats.postEvent('setting', `${this.props.name} ${(this.state.checked === true) ? 'enabled' : 'disabled'}`);
|
||||
|
||||
if (this.props.element) {
|
||||
if (!document.querySelector(this.props.element)) {
|
||||
|
||||
Reference in New Issue
Block a user