aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2023-08-24 02:53:18 +0100
committerLibravatar GitHub <noreply@github.com>2023-08-24 01:53:18 +0000
commit96e63dfe6dd6b79c1f8e657633aaff253b647e3d (patch)
tree71f8f1eadbca36427db9c74aa138afa7bd642816 /recipes
parentadd iconeb as a contributor for code (#406) [skip ci] (diff)
downloadferdium-recipes-96e63dfe6dd6b79c1f8e657633aaff253b647e3d.tar.gz
ferdium-recipes-96e63dfe6dd6b79c1f8e657633aaff253b647e3d.tar.zst
ferdium-recipes-96e63dfe6dd6b79c1f8e657633aaff253b647e3d.zip
Fix telegram deeplink by adding empty onload (#407)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/telegram/package.json2
-rw-r--r--recipes/telegram/webview.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/recipes/telegram/package.json b/recipes/telegram/package.json
index 5f6a543..95f0615 100644
--- a/recipes/telegram/package.json
+++ b/recipes/telegram/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "telegram", 2 "id": "telegram",
3 "name": "Telegram", 3 "name": "Telegram",
4 "version": "3.4.1", 4 "version": "3.4.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.telegram.org", 7 "serviceURL": "https://web.telegram.org",
diff --git a/recipes/telegram/webview.js b/recipes/telegram/webview.js
index 5126e7d..ca12e40 100644
--- a/recipes/telegram/webview.js
+++ b/recipes/telegram/webview.js
@@ -85,6 +85,9 @@ module.exports = (Ferdium, settings) => {
85 85
86 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); 86 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
87 87
88 // This is a hack to get the telegram web app to open links in Ferdium (otherwise it asks to deeplink and open with any tg:// protocol handler)
89 window.onload(() => {});
90
88 // TODO: See how this can be moved into the main ferdium app and sent as an ipc message for opening with a new window or same Ferdium recipe's webview based on user's preferences 91 // TODO: See how this can be moved into the main ferdium app and sent as an ipc message for opening with a new window or same Ferdium recipe's webview based on user's preferences
89 document.addEventListener( 92 document.addEventListener(
90 'click', 93 'click',