aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/discord/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/discord/webview.js')
-rw-r--r--recipes/discord/webview.js6
1 files changed, 5 insertions, 1 deletions
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);