diff options
author | MetaMuffin <metamuffin@yandex.com> | 2021-08-06 14:54:58 +0200 |
---|---|---|
committer | MetaMuffin <metamuffin@yandex.com> | 2021-08-06 14:54:58 +0200 |
commit | 09d86d1f44b0c3e2a75e14e3f993e3f269e19acb (patch) | |
tree | 3ddc8d5d17a94f971314c80eec8d91b77abe7407 /source/client | |
parent | 53c3512b70d5a6ae236e881fe31743bb79f82711 (diff) | |
download | keks-meet-09d86d1f44b0c3e2a75e14e3f993e3f269e19acb.tar keks-meet-09d86d1f44b0c3e2a75e14e3f993e3f269e19acb.tar.bz2 keks-meet-09d86d1f44b0c3e2a75e14e3f993e3f269e19acb.tar.zst |
this is stupid
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/room.ts | 2 |
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) => { |