diff options
author | James Andariese <jandarie@uaa.alaska.edu> | 2022-03-01 21:57:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 04:57:59 +0100 |
commit | beef6dbe73e2ed773029f9d4a9acdb8592794bda (patch) | |
tree | 51bd13b62ab9894b662df5589c3baa5a2c040e7f | |
parent | Do npm run package (diff) | |
download | ferdium-recipes-beef6dbe73e2ed773029f9d4a9acdb8592794bda.tar.gz ferdium-recipes-beef6dbe73e2ed773029f9d4a9acdb8592794bda.tar.zst ferdium-recipes-beef6dbe73e2ed773029f9d4a9acdb8592794bda.zip |
fix: show correct count in gmail badge when unread > 999 (#831)
-rw-r--r-- | recipes/gmail/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index 9b94d33..f7fba84 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js | |||
@@ -25,7 +25,7 @@ module.exports = Ferdi => { | |||
25 | if (parentNodeOfParentNode) { | 25 | if (parentNodeOfParentNode) { |
26 | const unreadCounts = parentNodeOfParentNode.querySelectorAll('.bsU'); | 26 | const unreadCounts = parentNodeOfParentNode.querySelectorAll('.bsU'); |
27 | if (unreadCounts.length > 0) { | 27 | if (unreadCounts.length > 0) { |
28 | count = Ferdi.safeParseInt(unreadCounts[0].textContent); | 28 | count = Ferdi.safeParseInt(unreadCounts[0].textContent.replace(/[^\p{N}]/gu, '')); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | } | 31 | } |