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