aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes/discord/package.json2
-rw-r--r--recipes/discord/webview.js6
2 files changed, 6 insertions, 2 deletions
diff --git a/recipes/discord/package.json b/recipes/discord/package.json
index aed5e15..4371c3c 100644
--- a/recipes/discord/package.json
+++ b/recipes/discord/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "discord", 2 "id": "discord",
3 "name": "Discord", 3 "name": "Discord",
4 "version": "1.8.0", 4 "version": "1.8.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://discord.com/login", 7 "serviceURL": "https://discord.com/login",
diff --git a/recipes/discord/webview.js b/recipes/discord/webview.js
index ef56336..052ddac 100644
--- a/recipes/discord/webview.js
+++ b/recipes/discord/webview.js
@@ -52,7 +52,11 @@ module.exports = (Ferdium, settings) => {
52 event.preventDefault(); 52 event.preventDefault();
53 event.stopPropagation(); 53 event.stopPropagation();
54 54
55 if (settings.trapLinkClicks === true) { 55 if (
56 // Always open file downloads in Ferdium, rather than the external browser
57 url.includes('discordapp.com/attachments/') ||
58 settings.trapLinkClicks === true
59 ) {
56 window.location.href = url; 60 window.location.href = url;
57 } else { 61 } else {
58 Ferdium.openNewWindow(url); 62 Ferdium.openNewWindow(url);