From 56ef89ac024972bb5ca62bb48f936ce63b9ea243 Mon Sep 17 00:00:00 2001 From: Edgars Date: Wed, 3 Jan 2024 04:19:49 +0200 Subject: GitHub recipe - fix unread count retrieval from new notififications link (#486) --- recipes/github/package.json | 2 +- recipes/github/webview.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/github/package.json b/recipes/github/package.json index 9b3b9b7..3cdcf19 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json @@ -1,7 +1,7 @@ { "id": "github", "name": "GitHub", - "version": "2.6.2", + "version": "2.6.3", "license": "MIT", "config": { "serviceURL": "https://github.com/notifications", 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) { const _path = _interopRequireDefault(require('path')); module.exports = Ferdium => { - const newCountMatch = document - .querySelector('a.h6[href="/notifications?query="]') - ?.textContent?.match(/\d+/); const getMessages = () => { + const newCountMatch = document + .querySelector('a.h6[href^="/notifications?query="]') + ?.textContent?.match(/\d+/); Ferdium.setBadge( Ferdium.safeParseInt( document.querySelector('.filter-list.js-notification-inboxes .count') -- cgit v1.2.3-54-g00ecf