diff options
author | 2021-10-05 17:04:09 +0200 | |
---|---|---|
committer | 2021-10-05 17:04:09 +0200 | |
commit | d3841b766f9d37d557646003899f67525c5f755f (patch) | |
tree | 1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/roundcube | |
parent | chore: repo maintenance (#732) (diff) | |
download | ferdium-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.js | 4 |
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 | }; |