aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Edgars <eandersons@users.noreply.github.com>2024-01-03 04:19:49 +0200
committerLibravatar GitHub <noreply@github.com>2024-01-02 19:19:49 -0700
commit56ef89ac024972bb5ca62bb48f936ce63b9ea243 (patch)
tree889413be48d4a87c496f830670a8f0a6bd5a9dd4
parentGoogle Voice darkmode.css, fix message links and additional side panels (#485) (diff)
downloadferdium-recipes-56ef89ac024972bb5ca62bb48f936ce63b9ea243.tar.gz
ferdium-recipes-56ef89ac024972bb5ca62bb48f936ce63b9ea243.tar.zst
ferdium-recipes-56ef89ac024972bb5ca62bb48f936ce63b9ea243.zip
GitHub recipe - fix unread count retrieval from new notififications link (#486)
-rw-r--r--recipes/github/package.json2
-rw-r--r--recipes/github/webview.js6
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 @@
1{ 1{
2 "id": "github", 2 "id": "github",
3 "name": "GitHub", 3 "name": "GitHub",
4 "version": "2.6.2", 4 "version": "2.6.3",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://github.com/notifications", 7 "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) {
5const _path = _interopRequireDefault(require('path')); 5const _path = _interopRequireDefault(require('path'));
6 6
7module.exports = Ferdium => { 7module.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')