Skip to content

Commit

Permalink
Open Telegram links within Ferdium
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbnl committed Jul 19, 2023
1 parent e2f889c commit d26e56e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/telegram/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d26e56e

Please sign in to comment.