commit b95c11fb11b57813f388a83eb1846c2aa9baf577
parent a5e5a70c09f75cd8e0842ef969b6c31b40450576
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Feb 2021 12:55:55 +0100
parent a5e5a70c09f75cd8e0842ef969b6c31b40450576
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Feb 2021 12:55:55 +0100
fix connection string
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/state.js b/src/state.js @@ -51,8 +51,8 @@ class State { } _initWS() { -// this.ws = new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.hostname}/${window.location.pathname.split("/").slice(0, -1).join("/")}/ws`); - this.ws = new WebSocket('ws://localhost:5000/ws'); + this.ws = new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.hostname}/${window.location.pathname.split("/").slice(0, -1).join("/")}/ws`); +// this.ws = new WebSocket('ws://localhost:5000/ws'); this.ws.onclose = () => { this.connected = false; this._initWS();