From 5fa730f826b27f69479382e1d5d9a1f0ae568144 Mon Sep 17 00:00:00 2001 From: Edgars Date: Sun, 17 Dec 2023 06:33:17 +0200 Subject: Add a new selector for indirect GitHub notification badge (#480) --- recipes/github/package.json | 2 +- recipes/github/webview.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'recipes') diff --git a/recipes/github/package.json b/recipes/github/package.json index e077f8d..9b3b9b7 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json @@ -1,7 +1,7 @@ { "id": "github", "name": "GitHub", - "version": "2.6.1", + "version": "2.6.2", "license": "MIT", "config": { "serviceURL": "https://github.com/notifications", diff --git a/recipes/github/webview.js b/recipes/github/webview.js index c3f653f..78086c2 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js @@ -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, ); }; -- cgit v1.2.3-54-g00ecf