aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Citeopeht Eripmav <93918529+CiteopehtEripmav@users.noreply.github.com>2023-07-22 19:21:33 -0400
committerLibravatar GitHub <noreply@github.com>2023-07-23 00:21:33 +0100
commit6c7c25830e39f145e601995b338be945b6481a8a (patch)
treea4051a296cabbbe63b3043a3d67d45ce0817fcd6
parentFix Instagram messages count (#387) (diff)
downloadferdium-recipes-6c7c25830e39f145e601995b338be945b6481a8a.tar.gz
ferdium-recipes-6c7c25830e39f145e601995b338be945b6481a8a.tar.zst
ferdium-recipes-6c7c25830e39f145e601995b338be945b6481a8a.zip
Update counter for Telegram webZ (#395)
-rw-r--r--recipes/telegram/package.json2
-rw-r--r--recipes/telegram/webview.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/telegram/package.json b/recipes/telegram/package.json
index 85f331f..31fc71d 100644
--- a/recipes/telegram/package.json
+++ b/recipes/telegram/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "telegram", 2 "id": "telegram",
3 "name": "Telegram", 3 "name": "Telegram",
4 "version": "3.3.6", 4 "version": "3.3.7",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.telegram.org", 7 "serviceURL": "https://web.telegram.org",
diff --git a/recipes/telegram/webview.js b/recipes/telegram/webview.js
index a4133ca..ee9e803 100644
--- a/recipes/telegram/webview.js
+++ b/recipes/telegram/webview.js
@@ -18,10 +18,10 @@ module.exports = (Ferdium, settings) => {
18 let groupCount = 0; 18 let groupCount = 0;
19 19
20 const directCountSelector = document.querySelectorAll( 20 const directCountSelector = document.querySelectorAll(
21 '.chat-list .ListItem.private .Badge.unread:not(.muted)', 21 '.chat-list .ListItem.private .ChatBadge.unread:not(.muted)',
22 ); 22 );
23 const groupCountSelector = document.querySelectorAll( 23 const groupCountSelector = document.querySelectorAll(
24 '.chat-list .ListItem.group .Badge.unread:not(.muted)', 24 '.chat-list .ListItem.group .ChatBadge.unread:not(.muted)',
25 ); 25 );
26 26
27 for (const badge of directCountSelector) { 27 for (const badge of directCountSelector) {