From 804aafb265e93c50abcb4d2c28e0ddfab16a36bb Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Tue, 31 May 2022 16:07:41 +0100 Subject: Fix open image in app or externally (instead of popup) (#37) Fix #195 on Ferdium-app which causes a problem when opening images inside the discord (and possibly zoom). --- recipes/skype/package.json | 2 +- recipes/skype/webview.js | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'recipes/skype') diff --git a/recipes/skype/package.json b/recipes/skype/package.json index 0a07ea3..247d9c5 100644 --- a/recipes/skype/package.json +++ b/recipes/skype/package.json @@ -1,7 +1,7 @@ { "id": "skype", "name": "Skype", - "version": "3.5.2", + "version": "3.5.3", "license": "MIT", "config": { "serviceURL": "https://web.skype.com/", diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js index b317d14..db97d98 100644 --- a/recipes/skype/webview.js +++ b/recipes/skype/webview.js @@ -38,15 +38,13 @@ module.exports = (Ferdium, settings) => { if (link || button) { const url = link ? link.getAttribute('href') : button.getAttribute('title'); - if (url.includes('views/imgpsh_fullsize_anim')) { - event.preventDefault(); - event.stopPropagation(); - - if (settings.trapLinkClicks === true) { - window.location.href = url; - } else { - Ferdium.openNewWindow(url); - } + event.preventDefault(); + event.stopPropagation(); + + if (settings.trapLinkClicks === true) { + window.location.href = url; + } else { + Ferdium.openNewWindow(url); } } }, true); -- cgit v1.2.3-70-g09d2