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 {
|
export default {
|
||||||
name: "App",
|
name: "App",
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if (window.location.protocol == "http") {
|
||||||
|
// Redirect to HTTPS
|
||||||
|
window.location.href = window.location.href.replace("http:", "https:");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.currentUser) {
|
if (this.currentUser) {
|
||||||
this.$matrix
|
this.$matrix
|
||||||
.login(this.currentUser)
|
.login(this.currentUser)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue