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 | |
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)
-rw-r--r-- | recipes/yahoo-mail/package.json | 2 | ||||
-rw-r--r-- | recipes/yahoo-mail/webview.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/yahoo-mail/package.json b/recipes/yahoo-mail/package.json index 9f5663c..a90df33 100644 --- a/recipes/yahoo-mail/package.json +++ b/recipes/yahoo-mail/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "yahoo-mail", | 2 | "id": "yahoo-mail", |
3 | "name": "Yahoo Mail", | 3 | "name": "Yahoo Mail", |
4 | "version": "1.2.1", | 4 | "version": "1.2.2", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://mail.yahoo.com", | 7 | "serviceURL": "https://mail.yahoo.com", |
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 | ||