aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
diff options
context:
space:
mode:
authorLibravatar Danny Qiu <dqiu55@gmail.com>2020-06-10 00:03:44 -0700
committerLibravatar Danny Qiu <dqiu55@gmail.com>2020-06-10 00:03:44 -0700
commit23a073ab74fa0b4265c0f5569c90c100605e6fb2 (patch)
tree9fbfef99a4c21610594228dba1b7d47485272ef4 /uncompressed
parentAdd support for keeping the featured status (diff)
downloadferdium-recipes-23a073ab74fa0b4265c0f5569c90c100605e6fb2.tar.gz
ferdium-recipes-23a073ab74fa0b4265c0f5569c90c100605e6fb2.tar.zst
ferdium-recipes-23a073ab74fa0b4265c0f5569c90c100605e6fb2.zip
Fix default link handling in Skype recipe
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/skype/package.json2
-rw-r--r--uncompressed/skype/webview.js9
2 files changed, 3 insertions, 8 deletions
diff --git a/uncompressed/skype/package.json b/uncompressed/skype/package.json
index 7437d65..9b4e168 100644
--- a/uncompressed/skype/package.json
+++ b/uncompressed/skype/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "skype", 2 "id": "skype",
3 "name": "Skype", 3 "name": "Skype",
4 "version": "1.4.0", 4 "version": "1.4.1",
5 "description": "Skype", 5 "description": "Skype",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io>", 7 "author": "Stefan Malzner <stefan@adlk.io>",
diff --git a/uncompressed/skype/webview.js b/uncompressed/skype/webview.js
index 63f445c..93a3613 100644
--- a/uncompressed/skype/webview.js
+++ b/uncompressed/skype/webview.js
@@ -88,10 +88,10 @@ module.exports = (Franz, settings) => {
88 88
89 if (link || button) { 89 if (link || button) {
90 const url = link ? link.getAttribute('href') : button.getAttribute('title'); 90 const url = link ? link.getAttribute('href') : button.getAttribute('title');
91 event.preventDefault();
92 event.stopPropagation();
93 91
94 if (url.includes('views/imgpsh_fullsize_anim')) { 92 if (url.includes('views/imgpsh_fullsize_anim')) {
93 event.preventDefault();
94 event.stopPropagation();
95 let win = new BrowserWindow({ 95 let win = new BrowserWindow({
96 width: 800, 96 width: 800,
97 height: window.innerHeight, 97 height: window.innerHeight,
@@ -101,11 +101,6 @@ module.exports = (Franz, settings) => {
101 } 101 }
102 }); 102 });
103 win.loadURL(url); 103 win.loadURL(url);
104 win.on('closed', () => {
105 win = null;
106 });
107 } else {
108 window.open(url);
109 } 104 }
110 } 105 }
111 }, true); 106 }, true);