aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/roundcube
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-05 17:04:09 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-05 17:04:09 +0200
commitd3841b766f9d37d557646003899f67525c5f755f (patch)
tree1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/roundcube
parentchore: repo maintenance (#732) (diff)
downloadferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/roundcube')
-rw-r--r--recipes/roundcube/webview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/roundcube/webview.js b/recipes/roundcube/webview.js
index c59da2f..08c6a95 100644
--- a/recipes/roundcube/webview.js
+++ b/recipes/roundcube/webview.js
@@ -2,8 +2,8 @@ module.exports = Ferdi => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const directElements = document.querySelectorAll('.unreadcount'); 3 const directElements = document.querySelectorAll('.unreadcount');
4 let direct = 0; 4 let direct = 0;
5 for (let i = 0; i < directElements.length; i += 1) { 5 for (const directElement of directElements) {
6 direct += Ferdi.safeParseInt(directElements[i].innerHTML); 6 direct += Ferdi.safeParseInt(directElement.textContent);
7 } 7 }
8 Ferdi.setBadge(direct); 8 Ferdi.setBadge(direct);
9 }; 9 };