aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
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
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')
-rw-r--r--recipes/skype/package.json2
-rw-r--r--recipes/skype/webview.js6
2 files changed, 7 insertions, 1 deletions
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 @@
1{ 1{
2 "id": "skype", 2 "id": "skype",
3 "name": "Skype", 3 "name": "Skype",
4 "version": "3.6.1", 4 "version": "3.6.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.skype.com/", 7 "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) => {
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 {