aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype/webview.js
diff options
context:
space:
mode:
authorLibravatar Arthur Huan <106561822+Arthur-Huan@users.noreply.github.com>2023-09-05 14:46:51 -0600
committerLibravatar GitHub <noreply@github.com>2023-09-05 21:46:51 +0100
commit762c53d74b28112c44dd237bdefe16586b206158 (patch)
tree828303fda2f8fb165f0fc2213c68344e6327b8c6 /recipes/skype/webview.js
parentfix counters in todoist (diff)
downloadferdium-recipes-762c53d74b28112c44dd237bdefe16586b206158.tar.gz
ferdium-recipes-762c53d74b28112c44dd237bdefe16586b206158.tar.zst
ferdium-recipes-762c53d74b28112c44dd237bdefe16586b206158.zip
Update Skype's webview.js for file downloads (#418)
* Update webview.js * Update package.json * recipe change * minor edits
Diffstat (limited to 'recipes/skype/webview.js')
-rw-r--r--recipes/skype/webview.js6
1 files changed, 6 insertions, 0 deletions
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) => {
50 event.preventDefault(); 50 event.preventDefault();
51 event.stopPropagation(); 51 event.stopPropagation();
52 52
53 if (url.includes('api.asm.skype.com')) {
54 // Always open file downloads in Ferdium, rather than the external browser
55 window.location.href = url;
56 return;
57 }
58
53 if (settings.trapLinkClicks === true) { 59 if (settings.trapLinkClicks === true) {
54 window.location.href = url; 60 window.location.href = url;
55 } else { 61 } else {