diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-09 19:27:18 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-09 19:27:18 +0200 |
commit | d71b0cb3b576e36ad4af64d40af584f05c4d89d3 (patch) | |
tree | a939a230011daa6bc8832df337fd72612264e82b /client-web/source/index.ts | |
parent | 962ec1b9a0b44661e46acf81e867e81e87d53038 (diff) | |
download | keks-meet-d71b0cb3b576e36ad4af64d40af584f05c4d89d3.tar keks-meet-d71b0cb3b576e36ad4af64d40af584f05c4d89d3.tar.bz2 keks-meet-d71b0cb3b576e36ad4af64d40af584f05c4d89d3.tar.zst |
minor adjustments
Diffstat (limited to 'client-web/source/index.ts')
-rw-r--r-- | client-web/source/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client-web/source/index.ts b/client-web/source/index.ts index e8bbc0b..7dfdb59 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -36,7 +36,7 @@ export async function main() { 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 (room_name.length < 8) log({ scope: "crypto", warn: true }, "Room name is very short. e2ee is insecure!") - if (room_name.length == 0) window.location.href = "/" // send them back to the start page + 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 you room name now - e2ee is insecure!") const conn = await (new SignalingConnection().connect(room_name)) |