From 24b0214f4cb6ad351a394b451b42123ab6c19d19 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Tue, 3 Jun 2025 16:37:19 -0700 Subject: [PATCH] page.redirect was not a function, causing the url not to redirect. als remove the # check so we are no longer serving ads --- src/client/Main.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/client/Main.ts b/src/client/Main.ts index c4b877eaa..cfcdd97de 100644 --- a/src/client/Main.ts +++ b/src/client/Main.ts @@ -240,21 +240,14 @@ class Client { page("/join/:lobbyId", (ctx) => { if (ctx.init && sessionStorage.getItem("inLobby")) { // On page reload, go back home - page.redirect("/"); + page("/"); return; } const lobbyId = ctx.params.lobbyId; - if (lobbyId?.endsWith("#")) { - // When the cookies button is pressed, '#' is added to the url - // causing the page to attempt to rejoin the lobby during game play. - console.error("Invalid lobby ID provided"); - return; - } - this.joinModal.open(lobbyId); - consolex.log(`joining lobby ${lobbyId}`); + console.log(`joining lobby ${lobbyId}`); }); page();