diff options
author | 2022-05-15 02:19:33 -0500 | |
---|---|---|
committer | 2022-05-15 02:19:33 -0500 | |
commit | bf1a6c50374f6687d6965bf83520f389a547fa5a (patch) | |
tree | cc3892a5d67e826039f6fa9178c1b7dd18e12314 /recipes/telegram | |
parent | Fix unread message count for zulip (diff) | |
download | ferdium-recipes-bf1a6c50374f6687d6965bf83520f389a547fa5a.tar.gz ferdium-recipes-bf1a6c50374f6687d6965bf83520f389a547fa5a.tar.zst ferdium-recipes-bf1a6c50374f6687d6965bf83520f389a547fa5a.zip |
Auto-corrected code with version bump for messenger and telegram recipes
Diffstat (limited to 'recipes/telegram')
-rw-r--r-- | recipes/telegram/package.json | 2 | ||||
-rw-r--r-- | recipes/telegram/webview.js | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/recipes/telegram/package.json b/recipes/telegram/package.json index 54843eb..21a4f3b 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.1", | 4 | "version": "3.3.2", |
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 632aff0..de63cf3 100644 --- a/recipes/telegram/webview.js +++ b/recipes/telegram/webview.js | |||
@@ -69,11 +69,7 @@ module.exports = Ferdium => { | |||
69 | const getActiveDialogTitle = () => { | 69 | const getActiveDialogTitle = () => { |
70 | let element; | 70 | let element; |
71 | 71 | ||
72 | if (isWebK) { | 72 | element = isWebK ? document.querySelector('.top .peer-title') : document.querySelector('.chat-list .ListItem .title > h3'); |
73 | element = document.querySelector('.top .peer-title'); | ||
74 | } else { | ||
75 | element = document.querySelector('.chat-list .ListItem .title > h3'); | ||
76 | } | ||
77 | 73 | ||
78 | Ferdium.setDialogTitle(element ? element.textContent : ''); | 74 | Ferdium.setDialogTitle(element ? element.textContent : ''); |
79 | }; | 75 | }; |