diff options
author | 2021-09-29 09:00:36 +0200 | |
---|---|---|
committer | 2021-09-29 09:00:36 +0200 | |
commit | 51431a33f63f6f5619477f12209dd915d6dd57e1 (patch) | |
tree | 0d10256051fb49e97547121e95cc428ee0a8532f /recipes/github/webview.js | |
parent | Added trello darkmode (#719) (diff) | |
download | ferdium-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/github/webview.js')
-rw-r--r-- | recipes/github/webview.js | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.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; |