diff options
Diffstat (limited to 'assets/js/app.js.bvr')
-rw-r--r-- | assets/js/app.js.bvr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/app.js.bvr b/assets/js/app.js.bvr index c99124b..17d7555 100644 --- a/assets/js/app.js.bvr +++ b/assets/js/app.js.bvr @@ -4,6 +4,10 @@ const app_version = "<@?g app_version@>"; const previous_commit = "<@?g latest_commit@>"; 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(() => { }) |