From 3d8496b956bd579e67aecf0d8ec6342636e565a4 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Wed, 14 Apr 2021 10:17:11 +0200 Subject: [PATCH] Redirect to HTTPS --- src/App.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.vue b/src/App.vue index 6c69705..fc4c165 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,6 +10,11 @@ export default { name: "App", mounted() { + if (window.location.protocol == "http") { + // Redirect to HTTPS + window.location.href = window.location.href.replace("http:", "https:"); + return; + } if (this.currentUser) { this.$matrix .login(this.currentUser)