aboutsummaryrefslogtreecommitdiff
path: root/source/client/room.ts
diff options
context:
space:
mode:
authorMetaMuffin <metamuffin@yandex.com>2021-08-06 14:54:58 +0200
committerMetaMuffin <metamuffin@yandex.com>2021-08-06 14:54:58 +0200
commit09d86d1f44b0c3e2a75e14e3f993e3f269e19acb (patch)
tree3ddc8d5d17a94f971314c80eec8d91b77abe7407 /source/client/room.ts
parent53c3512b70d5a6ae236e881fe31743bb79f82711 (diff)
downloadkeks-meet-09d86d1f44b0c3e2a75e14e3f993e3f269e19acb.tar
keks-meet-09d86d1f44b0c3e2a75e14e3f993e3f269e19acb.tar.bz2
keks-meet-09d86d1f44b0c3e2a75e14e3f993e3f269e19acb.tar.zst
this is stupid
Diffstat (limited to 'source/client/room.ts')
-rw-r--r--source/client/room.ts2
1 files changed, 1 insertions, 1 deletions
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) => {