fix: weather with offline mode, maximise fixes, voice search hot reload

This commit is contained in:
David Ralph
2021-06-30 14:11:45 +01:00
parent 2dcaa5270d
commit 6aa1c6b0ea
3 changed files with 13 additions and 12 deletions

View File

@@ -60,7 +60,7 @@ export default class Widgets extends React.PureComponent {
<React.Suspense fallback={renderLoader()}>
{this.enabled('searchBar') ? <Search/> : null}
{elements}
{this.enabled('weatherEnabled') && !localStorage.getItem('offlineMode') ? <Weather/> : null}
{this.enabled('weatherEnabled') && (localStorage.getItem('offlineMode') === 'false') ? <Weather/> : null}
</React.Suspense>
</div>
);