diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-05 17:04:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 17:04:09 +0200 |
commit | d3841b766f9d37d557646003899f67525c5f755f (patch) | |
tree | 1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/bip/webview.js | |
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/bip/webview.js')
-rw-r--r-- | recipes/bip/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/bip/webview.js b/recipes/bip/webview.js index ea8fa5f..f3166ce 100644 --- a/recipes/bip/webview.js +++ b/recipes/bip/webview.js | |||
@@ -6,8 +6,8 @@ module.exports = Ferdi => { | |||
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | const elements = document.querySelectorAll('.contact-list__message__unread-badge-counter'); | 7 | const elements = document.querySelectorAll('.contact-list__message__unread-badge-counter'); |
8 | let count = 0; | 8 | let count = 0; |
9 | for (let i = 0; i < elements.length; i++) { | 9 | for (const element of elements) { |
10 | count += Ferdi.safeParseInt(elements[i].textContent); | 10 | count += Ferdi.safeParseInt(element.textContent); |
11 | } | 11 | } |
12 | Ferdi.setBadge(count, 0); | 12 | Ferdi.setBadge(count, 0); |
13 | }; | 13 | }; |