aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/index.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-09 13:01:50 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-09 13:01:50 +0200
commite9aa676207be6e1b11863778deddba59109d88fb (patch)
treee525c971a1538bdc41a534b29ffbf61d23bcd72c /client-web/source/index.ts
parente590ea788aefe0714bb9ce24976303566a648d42 (diff)
downloadkeks-meet-e9aa676207be6e1b11863778deddba59109d88fb.tar
keks-meet-e9aa676207be6e1b11863778deddba59109d88fb.tar.bz2
keks-meet-e9aa676207be6e1b11863778deddba59109d88fb.tar.zst
works!
Diffstat (limited to 'client-web/source/index.ts')
-rw-r--r--client-web/source/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client-web/source/index.ts b/client-web/source/index.ts
index 5695573..22b2baf 100644
--- a/client-web/source/index.ts
+++ b/client-web/source/index.ts
@@ -21,7 +21,8 @@ window.onload = () => main()
export async function main() {
document.body.querySelectorAll("p").forEach(e => e.remove())
log("*", "starting up")
- const room_name = window.location.pathname.substring("/".length)
+ const room_name = window.location.hash.substring(1)
+ if (room_name.length == 0) window.location.href = "/" // send them back to the start page
const conn = await (new SignalingConnection().connect(room_name))
const room = new Room(conn)
create_menu()