aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar André Oliveira <oliveira.andrerodrigues95@gmail.com>2022-07-08 16:17:01 +0100
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-08 21:12:26 +0530
commit71d898e65d6d732de255f4313a9284959b7f7fa7 (patch)
tree4115224d9dc77b07a55a9e3f3ae86f2769be220c /recipes
parentUpgrade 'pnpm' to '7.5.0' (diff)
downloadferdium-recipes-71d898e65d6d732de255f4313a9284959b7f7fa7.tar.gz
ferdium-recipes-71d898e65d6d732de255f4313a9284959b7f7fa7.tar.zst
ferdium-recipes-71d898e65d6d732de255f4313a9284959b7f7fa7.zip
Fix in app URLs for discord
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