diff options
author | Ashish Dobani <dobaniashish@yahoo.com> | 2023-02-03 17:58:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 12:28:02 +0000 |
commit | 4e6c34890c11cd3baa87313ee7b9fd6551f0119b (patch) | |
tree | 58e273213a3f29a128d9b9b0367cb0d01d6a1788 /recipes/yahoo-mail/webview.js | |
parent | Upgrade 'pnpm' to '7.26.1' (diff) | |
download | ferdium-recipes-4e6c34890c11cd3baa87313ee7b9fd6551f0119b.tar.gz ferdium-recipes-4e6c34890c11cd3baa87313ee7b9fd6551f0119b.tar.zst ferdium-recipes-4e6c34890c11cd3baa87313ee7b9fd6551f0119b.zip |
Fix unread notifications count for yahoo-mail (#308)
Diffstat (limited to 'recipes/yahoo-mail/webview.js')
-rw-r--r-- | recipes/yahoo-mail/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/yahoo-mail/webview.js b/recipes/yahoo-mail/webview.js index d9f919c..9ab9b6b 100644 --- a/recipes/yahoo-mail/webview.js +++ b/recipes/yahoo-mail/webview.js | |||
@@ -1,6 +1,6 @@ | |||
1 | module.exports = (Ferdium) => { | 1 | module.exports = (Ferdium) => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | const count = document.querySelector('a[data-test-folder-name="Inbox"]').getAttribute('data-test-unread-count'); | 3 | const count = document.querySelector('a[data-test-folder-name="Inbox"] span[data-test-id="displayed-count"]').textContent; |
4 | Ferdium.setBadge(count); | 4 | Ferdium.setBadge(count); |
5 | }; | 5 | }; |
6 | 6 | ||