remove enforcing https for now (this should be handled at server layer)

This commit is contained in:
n8fr8 2021-12-06 09:01:16 -05:00
parent 98538551e7
commit faf581ebd9

View file

@ -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;;
}
}
</style>
</style>