Update OptionsMenu.ts

This commit is contained in:
icslucas
2025-07-26 18:05:09 +02:00
committed by GitHub
parent 31ecdc19e1
commit 4461f57ea5
+3 -1
View File
@@ -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