remove enforcing https for now (this should be handled at server layer)
This commit is contained in:
parent
98538551e7
commit
faf581ebd9
1 changed files with 4 additions and 2 deletions
|
|
@ -65,14 +65,16 @@ export default {
|
||||||
this.$i18n.locale = this.$store.state.language || "en";
|
this.$i18n.locale = this.$store.state.language || "en";
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
/**
|
||||||
if (
|
if (
|
||||||
window.location.protocol == "http" &&
|
window.location.protocol == "http" &&
|
||||||
!window.location.hostname.endsWith(".onion")
|
!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;
|
||||||
}
|
}
|
||||||
|
**/
|
||||||
if (this.currentUser) {
|
if (this.currentUser) {
|
||||||
this.$matrix
|
this.$matrix
|
||||||
.login(this.currentUser)
|
.login(this.currentUser)
|
||||||
|
|
@ -188,4 +190,4 @@ export default {
|
||||||
width: $main-desktop-width;;
|
width: $main-desktop-width;;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue