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();
|
OfflinePluginRuntime.applyUpdate();
|
||||||
},
|
},
|
||||||
onUpdated: () => {
|
onUpdated: () => {
|
||||||
localDbSvc.sync()
|
if (!store.state.light) {
|
||||||
.then(() => {
|
localDbSvc.sync()
|
||||||
localStorage.updated = true;
|
.then(() => {
|
||||||
// Reload the webpage to load into the new version
|
localStorage.updated = true;
|
||||||
location.reload();
|
// Reload the webpage to load into the new version
|
||||||
});
|
location.reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user