aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--all.json2
-rw-r--r--recipes/github/package.json2
-rw-r--r--recipes/github/webview.js8
3 files changed, 8 insertions, 4 deletions
diff --git a/all.json b/all.json
index e97b126..7ecb530 100644
--- a/all.json
+++ b/all.json
@@ -490,7 +490,7 @@
490 "featured": false, 490 "featured": false,
491 "id": "github", 491 "id": "github",
492 "name": "GitHub", 492 "name": "GitHub",
493 "version": "2.3.0", 493 "version": "2.3.1",
494 "icons": { 494 "icons": {
495 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/github/icon.svg" 495 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/github/icon.svg"
496 } 496 }
diff --git a/recipes/github/package.json b/recipes/github/package.json
index 5a35240..5ecd276 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.3.0", 4 "version": "2.3.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 36d98a6..47d4a13 100644
--- a/recipes/github/webview.js
+++ b/recipes/github/webview.js
@@ -1,12 +1,16 @@
1module.exports = Ferdi => { 1module.exports = Ferdi => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const directCountElement = document.querySelector('.filter-list .count'); 3 const directCountElement = document.querySelector(
4 '.filter-list.js-notification-inboxes .count',
5 );
4 let directCount = 0; 6 let directCount = 0;
5 if (directCountElement) { 7 if (directCountElement) {
6 directCount = Ferdi.safeParseInt(directCountElement.innerHTML); 8 directCount = Ferdi.safeParseInt(directCountElement.innerHTML);
7 } 9 }
8 10
9 const indirectCountElement = document.querySelector('[class*="mail-status unread"]'); 11 const indirectCountElement = document.querySelector(
12 '[class*="mail-status unread"]',
13 );
10 let indirectCount = 0; 14 let indirectCount = 0;
11 if (indirectCountElement) { 15 if (indirectCountElement) {
12 indirectCount = 1; 16 indirectCount = 1;