From 23a073ab74fa0b4265c0f5569c90c100605e6fb2 Mon Sep 17 00:00:00 2001 From: Danny Qiu Date: Wed, 10 Jun 2020 00:03:44 -0700 Subject: Fix default link handling in Skype recipe --- all.json | 2 +- archives/skype.tar.gz | Bin 74347 -> 74299 bytes uncompressed/skype/package.json | 2 +- uncompressed/skype/webview.js | 9 ++------- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/all.json b/all.json index 9ee1b9e..c43e05c 100644 --- a/all.json +++ b/all.json @@ -796,7 +796,7 @@ "featured": false, "id": "skype", "name": "Skype", - "version": "1.4.0", + "version": "1.4.1", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/skype/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/skype/icon.svg" diff --git a/archives/skype.tar.gz b/archives/skype.tar.gz index 5c6a5fd..a1bc4a8 100644 Binary files a/archives/skype.tar.gz and b/archives/skype.tar.gz differ 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 @@ { "id": "skype", "name": "Skype", - "version": "1.4.0", + "version": "1.4.1", "description": "Skype", "main": "index.js", "author": "Stefan Malzner ", 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) => { if (link || button) { const url = link ? link.getAttribute('href') : button.getAttribute('title'); - event.preventDefault(); - event.stopPropagation(); if (url.includes('views/imgpsh_fullsize_anim')) { + event.preventDefault(); + event.stopPropagation(); let win = new BrowserWindow({ width: 800, height: window.innerHeight, @@ -101,11 +101,6 @@ module.exports = (Franz, settings) => { } }); win.loadURL(url); - win.on('closed', () => { - win = null; - }); - } else { - window.open(url); } } }, true); -- cgit v1.2.3-70-g09d2