diff --git a/src/ts/main.ts b/src/ts/main.ts index c1e3c54..1ee0546 100644 --- a/src/ts/main.ts +++ b/src/ts/main.ts @@ -341,7 +341,7 @@ async function openVM(vm: VM): Promise { VM!.on('turn', (status) => turnUpdate(status)); VM!.on('vote', (status: VoteStatus) => voteUpdate(status)); VM!.on('voteend', () => voteEnd()); - VM!.on('votecd', (voteCooldown) => window.Alert_Modal(TheI18n.GetString(I18nStringKey.kVM_VoteCooldownTimer, voteCooldown))); + VM!.on('votecd', (voteCooldown) => Alert_Modal(TheI18n.GetString(I18nStringKey.kVM_VoteCooldownTimer, voteCooldown))); VM!.on('login', (rank: Rank, perms: Permissions) => onLogin(rank, perms)); VM!.on('close', () => {