diff options
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 | }; |