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