Redirect to HTTPS
This commit is contained in:
parent
4ed12743c4
commit
3d8496b956
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue