summaryrefslogtreecommitdiffstats
path: root/js/app.js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-10 19:14:31 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-10 19:14:31 +0100
commitf1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8 (patch)
tree9b41c472ddecfd6a22b8c17c579ef048cc9a7311 /js/app.js
parentadded bežiapp to all titles and added page name to navbar #2 (diff)
downloadbeziapp-f1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8.tar
beziapp-f1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8.tar.gz
beziapp-f1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8.tar.bz2
beziapp-f1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8.tar.lz
beziapp-f1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8.tar.xz
beziapp-f1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8.tar.zst
beziapp-f1870c625a3b6a418a3f7a1d7ef85cab5ebe57c8.zip
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index 137541f..eebb62d 100644
--- a/js/app.js
+++ b/js/app.js
@@ -12,3 +12,7 @@ navigator.serviceWorker.addEventListener('message', (event) => {
}
});
}
+if (location.protocol != 'https:')
+{
+ location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
+}