diff options
author | Edgars <eandersons@users.noreply.github.com> | 2024-01-03 04:19:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 19:19:49 -0700 |
commit | 56ef89ac024972bb5ca62bb48f936ce63b9ea243 (patch) | |
tree | 889413be48d4a87c496f830670a8f0a6bd5a9dd4 /recipes/github/webview.js | |
parent | Google Voice darkmode.css, fix message links and additional side panels (#485) (diff) | |
download | ferdium-recipes-56ef89ac024972bb5ca62bb48f936ce63b9ea243.tar.gz ferdium-recipes-56ef89ac024972bb5ca62bb48f936ce63b9ea243.tar.zst ferdium-recipes-56ef89ac024972bb5ca62bb48f936ce63b9ea243.zip |
GitHub recipe - fix unread count retrieval from new notififications link (#486)
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') |