feat: add warning for things that dont support hot reload

This commit is contained in:
David Ralph
2021-04-14 21:20:43 +01:00
parent ca2ce43f2f
commit 4feb4f79a9
21 changed files with 110 additions and 61 deletions

View File

@@ -26,6 +26,13 @@ export default class Text extends React.PureComponent {
value: value
});
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);
}