Skip to content

Commit

Permalink
Fix selector for unread GitHub notifications count
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersons authored and vraravam committed Aug 16, 2024
1 parent 3822f1f commit 38233ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipes/github/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "github",
"name": "GitHub",
"version": "2.6.4",
"version": "2.6.5",
"license": "MIT",
"config": {
"serviceURL": "https://github.com/notifications",
Expand Down
2 changes: 1 addition & 1 deletion recipes/github/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = Ferdium => {
?.textContent?.match(/\d+/);
Ferdium.setBadge(
Ferdium.safeParseInt(
document.querySelector('.filter-list.js-notification-inboxes .count')
document.querySelector('li[data-item-id="inbox"] .Counter')
?.textContent,
) + Ferdium.safeParseInt(newCountMatch ? newCountMatch[0] : 0),
document.querySelectorAll(
Expand Down

0 comments on commit 38233ee

Please sign in to comment.