diff options
author | 2022-07-09 13:16:19 +0530 | |
---|---|---|
committer | 2022-07-09 13:19:58 +0530 | |
commit | a0a21b0d7fbdce5d6dcf0c2c77ead11943c04eb7 (patch) | |
tree | bb1dab4a143c5d4f7e90bd1691ce2e0f6ad8333d /recipes/telegram/webview.js | |
parent | Fix #90 (diff) | |
download | ferdium-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.js | 4 |
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 | ||
7 | module.exports = Ferdium => { | 7 | module.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 |