Fix issue with protocol detection

This commit is contained in:
D. Berge
2020-09-03 21:18:56 +02:00
parent 5c8f8023d6
commit 1a851fefdf

View File

@@ -79,11 +79,11 @@ new Vue({
},
created () {
this.wsUrl = location.protocol == "https"
this.wsUrl = location.protocol == "https:"
? "wss://"+location.host+this.wsUrl
: "ws://"+location.host+this.wsUrl;
this.initWs();
this.$nextTick( () => this.initWs() );
},
router,