From e775030b70a19d733b711243fa4203a2c2f4accc Mon Sep 17 00:00:00 2001 From: variablevince <24507472+VariableVince@users.noreply.github.com> Date: Sun, 9 Nov 2025 19:32:05 +0100 Subject: [PATCH] Comment out changes from PR 2039 that didn't take PR 1836 into account, to properly test rejoin --- src/client/Main.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/Main.ts b/src/client/Main.ts index 4a999013b..8193f5196 100644 --- a/src/client/Main.ts +++ b/src/client/Main.ts @@ -469,9 +469,9 @@ class Client { this.patternsModal.open(affiliateCode); } } - if (decodedHash.startsWith("#refresh")) { - window.location.href = "/"; - } + // if (decodedHash.startsWith("#refresh")) { + // window.location.href = "/"; + // } } private async handleJoinLobby(event: CustomEvent) { @@ -563,9 +563,9 @@ class Client { }); // Ensure there's a homepage entry in history before adding the lobby entry - if (window.location.hash === "" || window.location.hash === "#") { - history.pushState(null, "", window.location.origin + "#refresh"); - } + // if (window.location.hash === "" || window.location.hash === "#") { + // history.pushState(null, "", window.location.origin + "#refresh"); + // } history.pushState(null, "", `#join=${lobby.gameID}`); }, );