mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 14:12:16 +00:00
Fixed a bug where if you joined a private lobby through a link and then tried to exit the game through the 'X' button, it will reload the page and rejoin the lobby
This commit is contained in:
@@ -52,7 +52,8 @@ export class OptionsMenu extends LitElement implements Layer {
|
||||
private hasWinner = false;
|
||||
|
||||
private onExitButtonClick() {
|
||||
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