mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 22:42:03 +00:00
Update OptionsMenu.ts
This commit is contained in:
@@ -76,7 +76,9 @@ export class OptionsMenu extends LitElement implements Layer {
|
||||
private onExitButtonClick() {
|
||||
const isAlive = this.game.myPlayer()?.isAlive();
|
||||
if (isAlive) {
|
||||
const isConfirmed = confirm("Are you sure you want to exit the game?");
|
||||
const isConfirmed = confirm(
|
||||
translateText("help_modal.exit_confirmation"),
|
||||
);
|
||||
if (!isConfirmed) return;
|
||||
}
|
||||
// redirect to the home page
|
||||
|
||||
Reference in New Issue
Block a user