Skip to content

Commit

Permalink
Update tab title when kicked
Browse files Browse the repository at this point in the history
  • Loading branch information
RblSb committed Aug 15, 2024
1 parent 4ac52a4 commit 4c4eaca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion res/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions res/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"yourPassword": "Your Password",
"emotes": "Emotes",
"chat": "Chat",
"kicked": "Kicked",
"clearChat": "Clear Chat",
"chatlinePlaceholder": "Send a message...",
"addVideoFromUrl": "Add video from URL",
Expand Down
1 change: 1 addition & 0 deletions res/langs/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"yourPassword": "Ваш пароль",
"emotes": "Смайлы",
"chat": "Чат",
"kicked": "Выпнут",
"clearChat": "Очистить чат",
"chatlinePlaceholder": "Введите сообщение...",
"addVideoFromUrl": "Добавить видео по ссылке",
Expand Down
3 changes: 2 additions & 1 deletion src/client/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ class Main {

case BanClient: // server-only
case KickClient:
document.title = '*${Lang.get("kicked")}*';
disabledReconnection = true;
ws.close();
case Message:
Expand Down Expand Up @@ -967,7 +968,7 @@ class Main {
} else {
showScrollToChatEndBtn();
}
if (onBlinkTab == null) blinkTabWithTitle("*Chat*");
if (onBlinkTab == null) blinkTabWithTitle('*${Lang.get("chat")}*');
}

function showScrollToChatEndBtn() {
Expand Down

0 comments on commit 4c4eaca

Please sign in to comment.