summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
+}