aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/skype/webview.js')
-rw-r--r--recipes/skype/webview.js16
1 files changed, 7 insertions, 9 deletions
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) => {
38 if (link || button) { 38 if (link || button) {
39 const url = link ? link.getAttribute('href') : button.getAttribute('title'); 39 const url = link ? link.getAttribute('href') : button.getAttribute('title');
40 40
41 if (url.includes('views/imgpsh_fullsize_anim')) { 41 event.preventDefault();
42 event.preventDefault(); 42 event.stopPropagation();
43 event.stopPropagation(); 43
44 44 if (settings.trapLinkClicks === true) {
45 if (settings.trapLinkClicks === true) { 45 window.location.href = url;
46 window.location.href = url; 46 } else {
47 } else { 47 Ferdium.openNewWindow(url);
48 Ferdium.openNewWindow(url);
49 }
50 } 48 }
51 } 49 }
52 }, true); 50 }, true);