aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/telegram/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/telegram/webview.js')
-rw-r--r--recipes/telegram/webview.js3
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',