Login now shows "beta" when playing on beta (#4973)

This commit is contained in:
Jannik Tappert 2024-12-07 02:48:55 +01:00 committed by GitHub
parent 757fe1a17c
commit 22f4e747ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -81,7 +81,11 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
}
override getModalTitle(_config?: ModalConfig): string {
return i18next.t("menu:login");
let key = "menu:login";
if (import.meta.env.VITE_SERVER_URL === "https://apibeta.pokerogue.net") {
key = "menu:loginBeta";
}
return i18next.t(key);
}
override getWidth(_config?: ModalConfig): number {