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/webview.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'recipes/skype/webview.js') 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-70-g09d2