From 07cb830c35f2bed8cfa8abcd1e31fc5bf965db9d Mon Sep 17 00:00:00 2001 From: rstular Date: Thu, 14 May 2020 01:51:10 +0200 Subject: Styling changes, first round of bug fixes There are (probably) more changes incoming, but we need to discuss them first --- js/app.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/app.js') 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 } ); -- cgit v1.2.3