diff options
Diffstat (limited to 'recipes/github')
-rw-r--r-- | recipes/github/package.json | 2 | ||||
-rw-r--r-- | recipes/github/webview.js | 8 |
2 files changed, 7 insertions, 3 deletions
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 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.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; |