parent
0ac3cefb03
commit
0cb59678d4
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
export default {
|
export default {
|
||||||
name: "App",
|
name: "App",
|
||||||
mounted() {
|
mounted() {
|
||||||
if (window.location.protocol == "http") {
|
if (window.location.protocol == "http" && !window.location.hostname.endsWith('.onion')) {
|
||||||
// Redirect to HTTPS
|
// Redirect to HTTPS
|
||||||
window.location.href = window.location.href.replace("http:", "https:");
|
window.location.href = window.location.href.replace("http:", "https:");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue