From c0146ce37126aa3ab8e1d5e744254e02054bb496 Mon Sep 17 00:00:00 2001 From: Victor B <39555268+victorbnl@users.noreply.github.com> Date: Thu, 20 Jul 2023 01:20:32 +0200 Subject: Open Telegram links within Ferdium (#394) --- recipes/telegram/webview.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'recipes/telegram/webview.js') diff --git a/recipes/telegram/webview.js b/recipes/telegram/webview.js index 288160a..a4133ca 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); -- cgit v1.2.3-70-g09d2