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.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes/discord/webview.js b/recipes/discord/webview.js
index 1255675..3ad4a60 100644
--- a/recipes/discord/webview.js
+++ b/recipes/discord/webview.js
@@ -33,8 +33,9 @@ module.exports = (Ferdium, settings) => {
33 33
34 if (link || button) { 34 if (link || button) {
35 const url = link ? link.getAttribute('href') : button.getAttribute('title'); 35 const url = link ? link.getAttribute('href') : button.getAttribute('title');
36 36 const stayInsideDiscord = url.includes('https://discordapp.com/channels/');
37 if (!Ferdium.isImage(url)) { 37
38 if (!Ferdium.isImage(url) && !stayInsideDiscord) {
38 event.preventDefault(); 39 event.preventDefault();
39 event.stopPropagation(); 40 event.stopPropagation();
40 41