diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-17 22:28:35 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-17 22:28:35 +0100 |
commit | f85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e (patch) | |
tree | 29aa31d00ff246d3ab662e5350a4ae9563ac279a /client-web/source/index.ts | |
parent | 6c8025c6dec52a26103186848510d72936f15603 (diff) | |
download | keks-meet-f85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e.tar keks-meet-f85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e.tar.bz2 keks-meet-f85d40d8c6cc2f3b58d1e0ea7f0382db88fffd4e.tar.zst |
refer to room name as secret instead
Diffstat (limited to 'client-web/source/index.ts')
-rw-r--r-- | client-web/source/index.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client-web/source/index.ts b/client-web/source/index.ts index d2bd276..bc52f8b 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -52,17 +52,17 @@ let r: Room; export async function main() { log("*", "starting up") document.body.querySelectorAll("p").forEach(e => e.remove()) - const room_name = load_params().rname + const room_secret = load_params().rsecret if (!globalThis.RTCPeerConnection) return log({ scope: "webrtc", error: true }, "WebRTC not supported.") if (!globalThis.isSecureContext) log({ scope: "*", warn: true }, "This page is not in a 'Secure Context'") if (!globalThis.crypto.subtle) return log({ scope: "crypto", error: true }, "SubtleCrypto not availible") if (!globalThis.navigator.serviceWorker) log({ scope: "*", warn: true }, "Your browser does not support the Service Worker API, some features dont work without it.") - if (room_name.length < 8) log({ scope: "crypto", warn: true }, "Room name is very short. e2ee is insecure!") - if (room_name.length == 0) return window.location.href = "/" // send them back to the start page - if (PREFS.warn_redirect) log({ scope: "crypto", warn: true }, "You were redirected from the old URL format. The server knows the room name now - e2ee is insecure!") + if (room_secret.length < 8) log({ scope: "crypto", warn: true }, "Room name is very short. e2ee is insecure!") + if (room_secret.length == 0) return window.location.href = "/" // send them back to the start page + if (PREFS.warn_redirect) log({ scope: "crypto", warn: true }, "You were redirected from the old URL format. The server knows the room secret now - e2ee is insecure!") - const conn = await (new SignalingConnection().connect(room_name)) + const conn = await (new SignalingConnection().connect(room_secret)) r = new Room(conn) setup_keybinds(r) |