aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Bauke van der Woude <6784391+baukevdw@users.noreply.github.com>2022-01-20 17:21:09 +0100
committerLibravatar GitHub <noreply@github.com>2022-01-20 17:21:09 +0100
commite32c7afca34149d856634e4a3a75892c5606c191 (patch)
tree980627b289db96190ac91a75892ce1fd2923a4ba /recipes
parentdocs: add baukevdw as a contributor for code (#822) (diff)
downloadferdium-recipes-e32c7afca34149d856634e4a3a75892c5606c191.tar.gz
ferdium-recipes-e32c7afca34149d856634e4a3a75892c5606c191.tar.zst
ferdium-recipes-e32c7afca34149d856634e4a3a75892c5606c191.zip
Fix Infomaniak message count (#823)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/infomaniak-mail/webview.js2
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);