Another small fix.
This commit is contained in:
parent
73251f92c8
commit
c1d5810020
|
@ -500,7 +500,7 @@ document.addEventListener('drop', (event) => {
|
||||||
if(ws) return;
|
if(ws) return;
|
||||||
|
|
||||||
let opened = false;
|
let opened = false;
|
||||||
ws = new WebSocket(`ws${window.location.protocol === "https"? "s" : ""}://${location.host}/ws`);
|
ws = new WebSocket(`ws${window.location.protocol === "https:"? "s" : ""}://${location.host}/ws`);
|
||||||
|
|
||||||
ws.addEventListener("open", () => {
|
ws.addEventListener("open", () => {
|
||||||
opened = true;
|
opened = true;
|
||||||
|
|
Loading…
Reference in New Issue