diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-07-08 21:21:33 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-07-08 21:30:51 +0530 |
commit | 433da7ae8bfaaf578f8a49c60f7febd2f740ffac (patch) | |
tree | 447508dfae217b9a5ab64e5e488f4f94c9566ee7 /recipes/github/webview.js | |
parent | Fix in app URLs for discord (diff) | |
download | ferdium-recipes-433da7ae8bfaaf578f8a49c60f7febd2f740ffac.tar.gz ferdium-recipes-433da7ae8bfaaf578f8a49c60f7febd2f740ffac.tar.zst ferdium-recipes-433da7ae8bfaaf578f8a49c60f7febd2f740ffac.zip |
Fix indirect notification count in github recipe (fixes #108)
Diffstat (limited to 'recipes/github/webview.js')
-rw-r--r-- | recipes/github/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/github/webview.js b/recipes/github/webview.js index aaa1e5d..ab55792 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js | |||
@@ -12,7 +12,7 @@ module.exports = Ferdium => { | |||
12 | '[class*="mail-status unread"]', | 12 | '[class*="mail-status unread"]', |
13 | ); | 13 | ); |
14 | let indirectCount = 0; | 14 | let indirectCount = 0; |
15 | if (indirectCountElement) { | 15 | if (indirectCountElement && indirectCountElement.textContent.trim().length > 0) { |
16 | indirectCount = 1; | 16 | indirectCount = 1; |
17 | } | 17 | } |
18 | 18 | ||