diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/telegram/package.json | 2 | ||||
-rw-r--r-- | recipes/telegram/webview.js | 3 |
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', |