Allow .onion served over http

Work on issue #111.
This commit is contained in:
N-Pex 2021-05-10 11:17:39 +02:00
parent 0ac3cefb03
commit 0cb59678d4

View file

@ -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;