feat: fully working hot reload for weather and search

This commit is contained in:
David Ralph
2021-04-14 16:18:01 +01:00
parent 6137139586
commit ca2ce43f2f
6 changed files with 8 additions and 18 deletions

View File

@@ -75,13 +75,6 @@ export default class Search extends React.PureComponent {
componentDidMount() {
EventBus.on('refresh', (data) => {
if (data === 'search') {
const element = document.querySelector('.searchBar');
if (localStorage.getItem('searchBar') === 'false') {
return element.style.display = 'none';
}
element.style.display = 'block';
this.init();
}
});