aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2024-08-15 10:18:38 +0300
committerRblSb <msrblsb@gmail.com>2024-08-15 10:18:38 +0300
commit4c4eacaa87b4a7dc9233eccf4611447dcad6a727 (patch)
treef3966eb67dff5dc7c580d7f34bb94a7e851bc89f
parent4ac52a44ced3691581a1390bbdbdc0906074b3f3 (diff)
Update tab title when kicked
-rw-r--r--res/client.js4
-rw-r--r--res/langs/en.json1
-rw-r--r--res/langs/ru.json1
-rw-r--r--src/client/Main.hx3
4 files changed, 7 insertions, 2 deletions
diff --git a/res/client.js b/res/client.js
index df2a27d..5bab611 100644
--- a/res/client.js
+++ b/res/client.js
@@ -1681,6 +1681,8 @@ client_Main.prototype = {
case "GetYoutubeVideoInfo":
break;
case "KickClient":
+ var tmp = "*" + Lang.get("kicked");
+ window.document.title = tmp + "*";
this.disabledReconnection = true;
this.ws.close();
break;
@@ -2160,7 +2162,7 @@ client_Main.prototype = {
this.showScrollToChatEndBtn();
}
if(this.onBlinkTab == null) {
- this.blinkTabWithTitle("*Chat*");
+ this.blinkTabWithTitle("*" + Lang.get("chat") + "*");
}
}
,showScrollToChatEndBtn: function() {
diff --git a/res/langs/en.json b/res/langs/en.json
index ac97ac5..3f5d47a 100644
--- a/res/langs/en.json
+++ b/res/langs/en.json
@@ -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",
diff --git a/res/langs/ru.json b/res/langs/ru.json
index 37ceb6a..932fb94 100644
--- a/res/langs/ru.json
+++ b/res/langs/ru.json
@@ -61,6 +61,7 @@
"yourPassword": "Ваш пароль",
"emotes": "Смайлы",
"chat": "Чат",
+ "kicked": "Выпнут",
"clearChat": "Очистить чат",
"chatlinePlaceholder": "Введите сообщение...",
"addVideoFromUrl": "Добавить видео по ссылке",
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 6d50b5e..2850c75 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -455,6 +455,7 @@ class Main {
case BanClient: // server-only
case KickClient:
+ document.title = '*${Lang.get("kicked")}*';
disabledReconnection = true;
ws.close();
case Message:
@@ -967,7 +968,7 @@ class Main {
} else {
showScrollToChatEndBtn();
}
- if (onBlinkTab == null) blinkTabWithTitle("*Chat*");
+ if (onBlinkTab == null) blinkTabWithTitle('*${Lang.get("chat")}*');
}
function showScrollToChatEndBtn() {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage