fix: various modal fixes

This commit is contained in:
David Ralph
2021-04-27 22:17:36 +01:00
parent 8f629b1ef9
commit 2afc9159cf
13 changed files with 55 additions and 16 deletions

View File

@@ -78,7 +78,9 @@ export default class BackgroundSettings extends React.PureComponent {
componentDidMount() {
if (navigator.onLine === false || localStorage.getItem('offlineMode') === 'true') {
return;
return this.setState({
backgroundCategories: [window.language.modals.update.offline.title]
});
}
this.getBackgroundCategories();