From 0cb59678d4d4c378cd3b12e7cbb857273681c612 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Mon, 10 May 2021 11:17:39 +0200 Subject: [PATCH] Allow .onion served over http Work on issue #111. --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index fc4c165..1bad6de 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,7 @@ export default { name: "App", mounted() { - if (window.location.protocol == "http") { + if (window.location.protocol == "http" && !window.location.hostname.endsWith('.onion')) { // Redirect to HTTPS window.location.href = window.location.href.replace("http:", "https:"); return;