diff options
Diffstat (limited to 'recipes/telegram/webview.js')
-rw-r--r-- | recipes/telegram/webview.js | 6 |
1 files changed, 5 insertions, 1 deletions
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) => { | |||
95 | event.preventDefault(); | 95 | event.preventDefault(); |
96 | event.stopPropagation(); | 96 | event.stopPropagation(); |
97 | 97 | ||
98 | if (settings.trapLinkClicks === true) { | 98 | if ( |
99 | settings.trapLinkClicks === true | ||
100 | || url.includes('t.me') | ||
101 | || url.includes('web.telegram.org') | ||
102 | ) { | ||
99 | window.location.href = url; | 103 | window.location.href = url; |
100 | } else { | 104 | } else { |
101 | Ferdium.openNewWindow(url); | 105 | Ferdium.openNewWindow(url); |