Disable autp upgrade in light mode
This commit is contained in:
parent
760c7e3e0d
commit
8e4279edc1
14
src/index.js
14
src/index.js
@ -20,12 +20,14 @@ if (NODE_ENV === 'production') {
|
||||
OfflinePluginRuntime.applyUpdate();
|
||||
},
|
||||
onUpdated: () => {
|
||||
localDbSvc.sync()
|
||||
.then(() => {
|
||||
localStorage.updated = true;
|
||||
// Reload the webpage to load into the new version
|
||||
location.reload();
|
||||
});
|
||||
if (!store.state.light) {
|
||||
localDbSvc.sync()
|
||||
.then(() => {
|
||||
localStorage.updated = true;
|
||||
// Reload the webpage to load into the new version
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user