diff options
Diffstat (limited to 'recipes/github')
-rw-r--r-- | recipes/github/package.json | 2 | ||||
-rw-r--r-- | recipes/github/webview.js | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/recipes/github/package.json b/recipes/github/package.json index 9b3b9b7..3cdcf19 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.6.2", | 4 | "version": "2.6.3", |
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 78086c2..269dd90 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js | |||
@@ -5,10 +5,10 @@ function _interopRequireDefault(obj) { | |||
5 | const _path = _interopRequireDefault(require('path')); | 5 | const _path = _interopRequireDefault(require('path')); |
6 | 6 | ||
7 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
8 | const newCountMatch = document | ||
9 | .querySelector('a.h6[href="/notifications?query="]') | ||
10 | ?.textContent?.match(/\d+/); | ||
11 | const getMessages = () => { | 8 | const getMessages = () => { |
9 | const newCountMatch = document | ||
10 | .querySelector('a.h6[href^="/notifications?query="]') | ||
11 | ?.textContent?.match(/\d+/); | ||
12 | Ferdium.setBadge( | 12 | Ferdium.setBadge( |
13 | Ferdium.safeParseInt( | 13 | Ferdium.safeParseInt( |
14 | document.querySelector('.filter-list.js-notification-inboxes .count') | 14 | document.querySelector('.filter-list.js-notification-inboxes .count') |