mirror of
https://github.com/mue/mue.git
synced 2026-06-08 14:10:42 +02:00
feat: fully working hot reload for weather and search
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user