diff options
-rw-r--r-- | recipes/infomaniak-mail/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/infomaniak-mail/webview.js b/recipes/infomaniak-mail/webview.js index 4d8b006..be8053c 100644 --- a/recipes/infomaniak-mail/webview.js +++ b/recipes/infomaniak-mail/webview.js | |||
@@ -2,7 +2,7 @@ module.exports = Ferdi => { | |||
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | const count = document.querySelector('.ws-tree-node-badge'); | 3 | const count = document.querySelector('.ws-tree-node-badge'); |
4 | const countText = count ? count.textContent : null; | 4 | const countText = count ? count.textContent : null; |
5 | Ferdi.setBadge(count && countText ? Number(countText.substring(1, countText.length - 1)) : 0); | 5 | Ferdi.setBadge(count && countText ? Number(countText) : 0); |
6 | }; | 6 | }; |
7 | 7 | ||
8 | Ferdi.loop(getMessages); | 8 | Ferdi.loop(getMessages); |