Merge pull request #41 from NewHappyRabbit/exit-lobby-fix

Fixed a bug where if you joined a private lobby through a link and hit the exit button in the options menu it will rejoin the lobby instead of heading to homepage
This commit is contained in:
evanpelle
2025-02-17 16:28:35 -08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ export class OptionsMenu extends LitElement implements Layer {
const isConfirmed = confirm("Are you sure you want to exit the game?");
if (!isConfirmed) return;
}
window.location.reload();
// redirect to the home page
window.location.href = "/";
}
createRenderRoot() {
+1 -1
View File
@@ -287,7 +287,7 @@ export class WinModal extends LitElement implements Layer {
private _handleExit() {
this.hide();
window.location.reload();
window.location.href = "/";
}
init() {