diff --git a/src/client/JoinLobbyModal.ts b/src/client/JoinLobbyModal.ts index c389ceb06..f4692a0d1 100644 --- a/src/client/JoinLobbyModal.ts +++ b/src/client/JoinLobbyModal.ts @@ -374,6 +374,11 @@ export class JoinLobbyModal extends BaseModal { ); } + public confirmBeforeClose(): boolean { + if (!this.currentLobbyId) return true; + return confirm(translateText("host_modal.leave_confirmation")); + } + protected onClose(): void { this.clearCountdownTimer(); this.stopLobbyUpdates();