aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/discord
diff options
context:
space:
mode:
authorLibravatar André Oliveira <oliveira.andrerodrigues95@gmail.com>2022-07-13 05:44:35 +0100
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-13 10:56:41 +0530
commit2043c7732bb7d18963986d2ed033281696a2c535 (patch)
tree471cfac927623c8b708c18b623d8a81e44095a4f /recipes/discord
parentChange isImage to link and stayInsideDiscord (#120) (diff)
downloadferdium-recipes-2043c7732bb7d18963986d2ed033281696a2c535.tar.gz
ferdium-recipes-2043c7732bb7d18963986d2ed033281696a2c535.tar.zst
ferdium-recipes-2043c7732bb7d18963986d2ed033281696a2c535.zip
Fix lint and prettier
Diffstat (limited to 'recipes/discord')
-rw-r--r--recipes/discord/package.json2
-rw-r--r--recipes/discord/webview.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/recipes/discord/package.json b/recipes/discord/package.json
index fe2b078..c2a8c05 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.7", 4 "version": "1.7.8",
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 bfd0683..c0c764d 100644
--- a/recipes/discord/webview.js
+++ b/recipes/discord/webview.js
@@ -35,6 +35,7 @@ module.exports = (Ferdium, settings) => {
35 const url = link ? link.getAttribute('href') : button.getAttribute('title'); 35 const url = link ? link.getAttribute('href') : button.getAttribute('title');
36 const skipDomains = [/^https:\/\/discordapp\.com\/channels\//i, /^https:\/\/discord\.com\/channels\//i]; 36 const skipDomains = [/^https:\/\/discordapp\.com\/channels\//i, /^https:\/\/discord\.com\/channels\//i];
37 37
38 let stayInsideDiscord;
38 skipDomains.every(skipDomain => { 39 skipDomains.every(skipDomain => {
39 stayInsideDiscord = skipDomain.test(url); 40 stayInsideDiscord = skipDomain.test(url);
40 return !stayInsideDiscord; 41 return !stayInsideDiscord;