diff options
author | 2022-07-13 05:44:35 +0100 | |
---|---|---|
committer | 2022-07-13 10:56:41 +0530 | |
commit | 2043c7732bb7d18963986d2ed033281696a2c535 (patch) | |
tree | 471cfac927623c8b708c18b623d8a81e44095a4f /recipes/discord/webview.js | |
parent | Change isImage to link and stayInsideDiscord (#120) (diff) | |
download | ferdium-recipes-2043c7732bb7d18963986d2ed033281696a2c535.tar.gz ferdium-recipes-2043c7732bb7d18963986d2ed033281696a2c535.tar.zst ferdium-recipes-2043c7732bb7d18963986d2ed033281696a2c535.zip |
Fix lint and prettier
Diffstat (limited to 'recipes/discord/webview.js')
-rw-r--r-- | recipes/discord/webview.js | 1 |
1 files changed, 1 insertions, 0 deletions
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; |