aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/skype')
-rw-r--r--recipes/skype/package.json2
-rw-r--r--recipes/skype/webview.js16
2 files changed, 8 insertions, 10 deletions
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 @@
1{ 1{
2 "id": "skype", 2 "id": "skype",
3 "name": "Skype", 3 "name": "Skype",
4 "version": "3.5.2", 4 "version": "3.5.3",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.skype.com/", 7 "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) => {
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);