From 762c53d74b28112c44dd237bdefe16586b206158 Mon Sep 17 00:00:00 2001 From: Arthur Huan <106561822+Arthur-Huan@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:46:51 -0600 Subject: Update Skype's webview.js for file downloads (#418) * Update webview.js * Update package.json * recipe change * minor edits --- recipes/skype/package.json | 2 +- recipes/skype/webview.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'recipes') diff --git a/recipes/skype/package.json b/recipes/skype/package.json index d056c3e..060ce34 100644 --- a/recipes/skype/package.json +++ b/recipes/skype/package.json @@ -1,7 +1,7 @@ { "id": "skype", "name": "Skype", - "version": "3.6.1", + "version": "3.6.2", "license": "MIT", "config": { "serviceURL": "https://web.skype.com/", diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js index 45bc005..c401b06 100644 --- a/recipes/skype/webview.js +++ b/recipes/skype/webview.js @@ -50,6 +50,12 @@ module.exports = (Ferdium, settings) => { event.preventDefault(); event.stopPropagation(); + if (url.includes('api.asm.skype.com')) { + // Always open file downloads in Ferdium, rather than the external browser + window.location.href = url; + return; + } + if (settings.trapLinkClicks === true) { window.location.href = url; } else { -- cgit v1.2.3-54-g00ecf