From bf1a6c50374f6687d6965bf83520f389a547fa5a Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 15 May 2022 02:19:33 -0500 Subject: Auto-corrected code with version bump for messenger and telegram recipes --- recipes/telegram/package.json | 2 +- recipes/telegram/webview.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'recipes/telegram') 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 @@ { "id": "telegram", "name": "Telegram", - "version": "3.3.1", + "version": "3.3.2", "license": "MIT", "config": { "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 => { const getActiveDialogTitle = () => { let element; - if (isWebK) { - element = document.querySelector('.top .peer-title'); - } else { - element = document.querySelector('.chat-list .ListItem .title > h3'); - } + element = isWebK ? document.querySelector('.top .peer-title') : document.querySelector('.chat-list .ListItem .title > h3'); Ferdium.setDialogTitle(element ? element.textContent : ''); }; -- cgit v1.2.3-54-g00ecf