From b18d13e6752730c005d43114430adf7d4a2845cf Mon Sep 17 00:00:00 2001 From: variablevince <24507472+VariableVince@users.noreply.github.com> Date: Sun, 9 Nov 2025 20:41:14 +0100 Subject: [PATCH] Revert "Comment out changes from PR 2039 that didn't take PR 1836 into account, to properly test rejoin" This reverts commit e775030b70a19d733b711243fa4203a2c2f4accc. --- 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 8193f5196..4a999013b 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}`); }, );