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: () => {
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();
});
}
}, },
}); });
} }