aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/github
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-08 21:21:33 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-08 21:30:51 +0530
commit433da7ae8bfaaf578f8a49c60f7febd2f740ffac (patch)
tree447508dfae217b9a5ab64e5e488f4f94c9566ee7 /recipes/github
parentFix in app URLs for discord (diff)
downloadferdium-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')
-rw-r--r--recipes/github/package.json2
-rw-r--r--recipes/github/webview.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/github/package.json b/recipes/github/package.json
index d939907..18adf96 100644
--- a/recipes/github/package.json
+++ b/recipes/github/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "github", 2 "id": "github",
3 "name": "GitHub", 3 "name": "GitHub",
4 "version": "2.5.0", 4 "version": "2.5.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://github.com/notifications", 7 "serviceURL": "https://github.com/notifications",
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