From d26e56ea8f513b211d44b808820fe8b47dd1e0cf Mon Sep 17 00:00:00 2001 From: Victor Bonnelle Date: Wed, 19 Jul 2023 21:16:36 +0200 Subject: [PATCH] Open Telegram links within Ferdium --- recipes/telegram/webview.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes/telegram/webview.js b/recipes/telegram/webview.js index 288160a97..a4133cadb 100644 --- a/recipes/telegram/webview.js +++ b/recipes/telegram/webview.js @@ -95,7 +95,11 @@ module.exports = (Ferdium, settings) => { event.preventDefault(); event.stopPropagation(); - if (settings.trapLinkClicks === true) { + if ( + settings.trapLinkClicks === true + || url.includes('t.me') + || url.includes('web.telegram.org') + ) { window.location.href = url; } else { Ferdium.openNewWindow(url);