Revert "Comment out changes from PR 2039 that didn't take PR 1836 into account, to properly test rejoin"

This reverts commit e775030b70.
This commit is contained in:
variablevince
2025-11-09 20:41:14 +01:00
parent e775030b70
commit b18d13e675
+6 -6
View File
@@ -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<JoinLobbyEvent>) {
@@ -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}`);
},
);