From e9aa676207be6e1b11863778deddba59109d88fb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 9 Sep 2022 13:01:50 +0200 Subject: works! --- client-web/source/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client-web/source/index.ts') 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() -- cgit v1.2.3-70-g09d2