summaryrefslogtreecommitdiffstats
path: root/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index f7c423f..022b946 100644
--- a/js/app.js
+++ b/js/app.js
@@ -12,9 +12,11 @@ if (navigator.serviceWorker) {
}
});
}
+
if (location.protocol != 'https:') {
location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}
+
async function UIAlert(usermsg, devmsg) {
if(true) { // če bo kakšen dev switch?
M.toast( { html: usermsg } );