aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-02-09 12:42:17 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-02-09 12:42:17 +0100
commitc1426b72383e2affce1d90164d1b1be0f7f7ac7b (patch)
treea6465ecf01b47569c2596fa5dd523be8a9f7cca2 /src/js
parentc0b90b2a8c9c3208f6a16277a0cfe02170cfb91f (diff)
downloadhoverbit-ble-c1426b72383e2affce1d90164d1b1be0f7f7ac7b.tar.gz
hoverbit-ble-c1426b72383e2affce1d90164d1b1be0f7f7ac7b.zip
:sparkles: Try to make the app update itself more often
Diffstat (limited to 'src/js')
-rw-r--r--src/js/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js/main.js b/src/js/main.js
index 8ce766c..f42f268 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -21,6 +21,7 @@ if (navigator.serviceWorker) {
}
};
};
+ registration.update();
}).catch(error => {
notif_alert("Could not install service worker...");
console.error("Error during service worker registration:", error);