Redirect to HTTPS

This commit is contained in:
N-Pex 2021-04-14 10:17:11 +02:00
parent 4ed12743c4
commit 3d8496b956

View file

@ -10,6 +10,11 @@
export default {
name: "App",
mounted() {
if (window.location.protocol == "http") {
// Redirect to HTTPS
window.location.href = window.location.href.replace("http:", "https:");
return;
}
if (this.currentUser) {
this.$matrix
.login(this.currentUser)