aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zoom/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/zoom/webview.js')
-rw-r--r--recipes/zoom/webview.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/recipes/zoom/webview.js b/recipes/zoom/webview.js
index 030c038..1255675 100644
--- a/recipes/zoom/webview.js
+++ b/recipes/zoom/webview.js
@@ -33,14 +33,16 @@ module.exports = (Ferdium, settings) => {
33 33
34 if (link || button) { 34 if (link || button) {
35 const url = link ? link.getAttribute('href') : button.getAttribute('title'); 35 const url = link ? link.getAttribute('href') : button.getAttribute('title');
36 36
37 event.preventDefault(); 37 if (!Ferdium.isImage(url)) {
38 event.stopPropagation(); 38 event.preventDefault();
39 39 event.stopPropagation();
40 if (settings.trapLinkClicks === true) { 40
41 window.location.href = url; 41 if (settings.trapLinkClicks === true) {
42 } else { 42 window.location.href = url;
43 Ferdium.openNewWindow(url); 43 } else {
44 Ferdium.openNewWindow(url);
45 }
44 } 46 }
45 } 47 }
46 }, true); 48 }, true);