diff options
Diffstat (limited to 'recipes/github/webview.js')
-rw-r--r-- | recipes/github/webview.js | 6 |
1 files changed, 3 insertions, 3 deletions
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') |