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 --- uncompressed/skype/package.json | 2 +- uncompressed/skype/webview.js | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'uncompressed') 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