From e32c7afca34149d856634e4a3a75892c5606c191 Mon Sep 17 00:00:00 2001 From: Bauke van der Woude <6784391+baukevdw@users.noreply.github.com> Date: Thu, 20 Jan 2022 17:21:09 +0100 Subject: Fix Infomaniak message count (#823) --- recipes/infomaniak-mail/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes') 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 => { const getMessages = () => { const count = document.querySelector('.ws-tree-node-badge'); const countText = count ? count.textContent : null; - Ferdi.setBadge(count && countText ? Number(countText.substring(1, countText.length - 1)) : 0); + Ferdi.setBadge(count && countText ? Number(countText) : 0); }; Ferdi.loop(getMessages); -- cgit v1.2.3-54-g00ecf