From faf581ebd94d835a699af3c5cc55d10a0b2ea364 Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Mon, 6 Dec 2021 09:01:16 -0500 Subject: [PATCH] remove enforcing https for now (this should be handled at server layer) --- src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7622dd2..38daafe 100644 --- a/src/App.vue +++ b/src/App.vue @@ -65,14 +65,16 @@ export default { this.$i18n.locale = this.$store.state.language || "en"; }, mounted() { + /** if ( window.location.protocol == "http" && !window.location.hostname.endsWith(".onion") ) { // Redirect to HTTPS - window.location.href = window.location.href.replace("http:", "https:"); + // window.location.href = window.location.href.replace("http:", "https:"); return; } + **/ if (this.currentUser) { this.$matrix .login(this.currentUser) @@ -188,4 +190,4 @@ export default { width: $main-desktop-width;; } } - \ No newline at end of file +