diff options
author | Kristóf Marussy <kristof@marussy.com> | 2020-10-02 23:48:17 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2020-10-03 12:25:29 +0200 |
commit | 8f961451ac9c5cff65af4003ae3bca83bfe8ef36 (patch) | |
tree | 83950f95705e2c03a1006649da562c2989073869 /recipes/gmail/index.js | |
parent | Update user agent for OWA and Outlook (#302) (diff) | |
download | ferdium-recipes-8f961451ac9c5cff65af4003ae3bca83bfe8ef36.tar.gz ferdium-recipes-8f961451ac9c5cff65af4003ae3bca83bfe8ef36.tar.zst ferdium-recipes-8f961451ac9c5cff65af4003ae3bca83bfe8ef36.zip |
More careful Gmail unread count detection
10a670fe33bd7fab841ddaf4674deb11477f2267 changed the unread count
detection to grab the number besides the Inbox link instead of the total
number of unread messages in the traditional inbox.
However, this detection may fail in there are no unread messages in the
inbox and report the number of unread messages from a different category
instead.
This commit combines the previous and the combined approach by first
finding the "Inbox" link as in the previous approach, but it extracts
the number of unread messages from the number beside it (instead of the
aria-label with the total number of unread messages).
Diffstat (limited to 'recipes/gmail/index.js')
0 files changed, 0 insertions, 0 deletions