aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/telegram/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-09 13:16:19 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-09 13:19:58 +0530
commita0a21b0d7fbdce5d6dcf0c2c77ead11943c04eb7 (patch)
treebb1dab4a143c5d4f7e90bd1691ce2e0f6ad8333d /recipes/telegram/webview.js
parentFix #90 (diff)
downloadferdium-recipes-a0a21b0d7fbdce5d6dcf0c2c77ead11943c04eb7.tar.gz
ferdium-recipes-a0a21b0d7fbdce5d6dcf0c2c77ead11943c04eb7.tar.zst
ferdium-recipes-a0a21b0d7fbdce5d6dcf0c2c77ead11943c04eb7.zip
Fix issue with telegram web-k not being recognized correctly
Diffstat (limited to 'recipes/telegram/webview.js')
-rw-r--r--recipes/telegram/webview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/telegram/webview.js b/recipes/telegram/webview.js
index de63cf3..544a573 100644
--- a/recipes/telegram/webview.js
+++ b/recipes/telegram/webview.js
@@ -6,10 +6,10 @@ function _interopRequireDefault(obj) {
6 6
7module.exports = Ferdium => { 7module.exports = Ferdium => {
8 const telegramVersion = document 8 const telegramVersion = document
9 .querySelector('meta[name="application-name"]') 9 .querySelector('meta[property="og:url"]')
10 ?.getAttribute('content'); 10 ?.getAttribute('content');
11 11
12 const isWebK = telegramVersion?.includes('WebK'); 12 const isWebK = telegramVersion?.includes('/k/');
13 13
14 // There are two different Telegram versions for internal competition 14 // There are two different Telegram versions for internal competition
15 // Read more: https://bugs.telegram.org/c/4002/public 15 // Read more: https://bugs.telegram.org/c/4002/public