diff --git a/src/App.vue b/src/App.vue index 6c69705..fc4c165 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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)