mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 05:03:50 +00:00
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:
@@ -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() {
|
||||
|
||||
@@ -287,7 +287,7 @@ export class WinModal extends LitElement implements Layer {
|
||||
|
||||
private _handleExit() {
|
||||
this.hide();
|
||||
window.location.reload();
|
||||
window.location.href = "/";
|
||||
}
|
||||
|
||||
init() {
|
||||
|
||||
Reference in New Issue
Block a user