Disable autp upgrade in light mode

This commit is contained in:
benweet 2018-04-05 19:35:55 +01:00
parent 760c7e3e0d
commit 8e4279edc1

View File

@ -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();
});
}
},
});
}