aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-29 09:00:36 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-29 09:00:36 +0200
commit51431a33f63f6f5619477f12209dd915d6dd57e1 (patch)
tree0d10256051fb49e97547121e95cc428ee0a8532f /recipes
parentAdded trello darkmode (#719) (diff)
downloadferdium-recipes-51431a33f63f6f5619477f12209dd915d6dd57e1.tar.gz
ferdium-recipes-51431a33f63f6f5619477f12209dd915d6dd57e1.tar.zst
ferdium-recipes-51431a33f63f6f5619477f12209dd915d6dd57e1.zip
fix: searching repos on github clogs notifications (#729)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/github/package.json2
-rw-r--r--recipes/github/webview.js8
2 files changed, 7 insertions, 3 deletions
diff --git a/recipes/github/package.json b/recipes/github/package.json
index 5a35240..5ecd276 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.3.0", 4 "version": "2.3.1",
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 36d98a6..47d4a13 100644
--- a/recipes/github/webview.js
+++ b/recipes/github/webview.js
@@ -1,12 +1,16 @@
1module.exports = Ferdi => { 1module.exports = Ferdi => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const directCountElement = document.querySelector('.filter-list .count'); 3 const directCountElement = document.querySelector(
4 '.filter-list.js-notification-inboxes .count',
5 );
4 let directCount = 0; 6 let directCount = 0;
5 if (directCountElement) { 7 if (directCountElement) {
6 directCount = Ferdi.safeParseInt(directCountElement.innerHTML); 8 directCount = Ferdi.safeParseInt(directCountElement.innerHTML);
7 } 9 }
8 10
9 const indirectCountElement = document.querySelector('[class*="mail-status unread"]'); 11 const indirectCountElement = document.querySelector(
12 '[class*="mail-status unread"]',
13 );
10 let indirectCount = 0; 14 let indirectCount = 0;
11 if (indirectCountElement) { 15 if (indirectCountElement) {
12 indirectCount = 1; 16 indirectCount = 1;