summaryrefslogtreecommitdiffstats
path: root/dist/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js/app.js')
-rwxr-xr-xdist/js/app.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/dist/js/app.js b/dist/js/app.js
index 816250f..c0d2c6f 100755
--- a/dist/js/app.js
+++ b/dist/js/app.js
@@ -5,13 +5,19 @@
// @begin=js@
const app_version = "1.0.16.3-beta";
-const previous_commit = "5376b618e88d85b3fc16561176478c104af1a01b";
+const previous_commit = "ec8292f44fd0040145c1643ff871a98e3a41fcd0";
const BEZIAPP_UPDATE_INTERVAL = 300; // update vsakih 300 sekund
+if (location.protocol !== 'https:') {
+ location.replace(`https:${location.href.substring(location.protocol.length)}`);
+}
+
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js")
.then(() => { })
.catch((err) => console.log("Service worker registration failed", err));
+} else {
+ alert("Vaša naprava ne podpira BežiAppa. Your device does not support BežiApp.");
}
// Listen to messages from service workers.