aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
Diffstat (limited to 'recipes')
-rw-r--r--recipes/discord/package.json2
-rw-r--r--recipes/discord/webview.js5
2 files changed, 4 insertions, 3 deletions
diff --git a/recipes/discord/package.json b/recipes/discord/package.json
index b79a293..aed7ab6 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.7.5", 4 "version": "1.7.6",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://discordapp.com/login", 7 "serviceURL": "https://discordapp.com/login",
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