Skip to content

Commit

Permalink
Add new selector for indirect GitHub notif. badge
Browse files Browse the repository at this point in the history
GitHub recipe was updated to append a new selector for indirect
notifications badge that works when an user navigates to GitHub Gist.
  • Loading branch information
eandersons committed Dec 15, 2023
1 parent 647b506 commit 7462952
Show file tree
Hide file tree
Showing 2 changed files with 3 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.1",
"version": "2.6.2",
"license": "MIT",
"config": {
"serviceURL": "https://github.com/notifications",
Expand Down
3 changes: 2 additions & 1 deletion recipes/github/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = Ferdium => {
?.textContent,
) + Ferdium.safeParseInt(newCountMatch ? newCountMatch[0] : 0),
document.querySelectorAll(
'#AppHeader-notifications-button.AppHeader-button--hasIndicator',
'#AppHeader-notifications-button.AppHeader-button--hasIndicator, ' +
'[data-target="notification-indicator.badge"]:not([hidden])',
).length,
);
};
Expand Down

0 comments on commit 7462952

Please sign in to comment.