diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2023-08-24 02:53:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 01:53:18 +0000 |
commit | 96e63dfe6dd6b79c1f8e657633aaff253b647e3d (patch) | |
tree | 71f8f1eadbca36427db9c74aa138afa7bd642816 /recipes/telegram/webview.js | |
parent | add iconeb as a contributor for code (#406) [skip ci] (diff) | |
download | ferdium-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/telegram/webview.js')
-rw-r--r-- | recipes/telegram/webview.js | 3 |
1 files changed, 3 insertions, 0 deletions
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', |