Another small fix.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user