From 8e4279edc17845b17bebb18c1a44524f1291aaba Mon Sep 17 00:00:00 2001 From: benweet Date: Thu, 5 Apr 2018 19:35:55 +0100 Subject: [PATCH] Disable autp upgrade in light mode --- src/index.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 2a1a267b..b4a85022 100644 --- a/src/index.js +++ b/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(); + }); + } }, }); }