diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-05-15 02:19:33 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-05-15 02:19:33 -0500 |
commit | bf1a6c50374f6687d6965bf83520f389a547fa5a (patch) | |
tree | cc3892a5d67e826039f6fa9178c1b7dd18e12314 /recipes/telegram/webview.js | |
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/webview.js')
-rw-r--r-- | recipes/telegram/webview.js | 6 |
1 files changed, 1 insertions, 5 deletions
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 | }; |