diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2023-11-19 07:04:37 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2023-11-19 07:04:37 +0530 |
commit | f8e5512f28eab2f708c014d773d75a68d43d1101 (patch) | |
tree | 0e93e374263ef7d64196b8f6033ee5072ac91e70 | |
parent | add Cknight70 as a contributor for code (#462) (diff) | |
download | ferdium-recipes-f8e5512f28eab2f708c014d773d75a68d43d1101.tar.gz ferdium-recipes-f8e5512f28eab2f708c014d773d75a68d43d1101.tar.zst ferdium-recipes-f8e5512f28eab2f708c014d773d75a68d43d1101.zip |
Fixed formatting of discord recipe
-rw-r--r-- | recipes/discord/webview.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes/discord/webview.js b/recipes/discord/webview.js index 938b3a1..7925df4 100644 --- a/recipes/discord/webview.js +++ b/recipes/discord/webview.js | |||
@@ -15,7 +15,8 @@ module.exports = (Ferdium, settings) => { | |||
15 | directCount += Ferdium.safeParseInt(directCountBadge.textContent); | 15 | directCount += Ferdium.safeParseInt(directCountBadge.textContent); |
16 | } | 16 | } |
17 | 17 | ||
18 | const indirectCountPerServer = document.title.search('• Discord') === -1 ? 0 : 1; | 18 | const indirectCountPerServer = |
19 | document.title.search('• Discord') === -1 ? 0 : 1; | ||
19 | 20 | ||
20 | Ferdium.setBadge(directCount, indirectCountPerServer); | 21 | Ferdium.setBadge(directCount, indirectCountPerServer); |
21 | }; | 22 | }; |