From 09d86d1f44b0c3e2a75e14e3f993e3f269e19acb Mon Sep 17 00:00:00 2001 From: MetaMuffin Date: Fri, 6 Aug 2021 14:54:58 +0200 Subject: this is stupid --- source/client/room.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/client') diff --git a/source/client/room.ts b/source/client/room.ts index 93cfccf..6a53a45 100644 --- a/source/client/room.ts +++ b/source/client/room.ts @@ -19,7 +19,7 @@ export class Room { this.name = name this.el = document.createElement("div") this.el.classList.add("room") - this.websocket = new WebSocket(`${window.location.protocol.endsWith("s") ? "wss" : "ws"}://${window.location.host}/signaling/${encodeURIComponent(name)}`) + this.websocket = new WebSocket(`${window.location.protocol.endsWith("s:") ? "wss" : "ws"}://${window.location.host}/signaling/${encodeURIComponent(name)}`) this.websocket.onclose = () => this.websocket_close() this.websocket.onopen = () => this.websocket_open() this.websocket.onmessage = (ev) => { -- cgit v1.2.3-70-g09d2