mirror of
https://github.com/mue/mue.git
synced 2026-07-26 18:21:27 +02:00
feat: add warning for things that dont support hot reload
This commit is contained in:
@@ -21,6 +21,13 @@ export default class Switch extends React.PureComponent {
|
||||
checked: (this.state.checked === true) ? false : true
|
||||
});
|
||||
|
||||
if (this.props.element) {
|
||||
if (!document.querySelector(this.props.element)) {
|
||||
document.querySelector('.reminder-info').style.display = 'block';
|
||||
return localStorage.setItem('showReminder', true);
|
||||
}
|
||||
}
|
||||
|
||||
EventBus.dispatch('refresh', this.props.category);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user