diff options
author | 2021-10-05 17:04:09 +0200 | |
---|---|---|
committer | 2021-10-05 17:04:09 +0200 | |
commit | d3841b766f9d37d557646003899f67525c5f755f (patch) | |
tree | 1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/nextcloud-talk/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/nextcloud-talk/webview.js')
-rw-r--r-- | recipes/nextcloud-talk/webview.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/recipes/nextcloud-talk/webview.js b/recipes/nextcloud-talk/webview.js index 1b55203..49a3e29 100644 --- a/recipes/nextcloud-talk/webview.js +++ b/recipes/nextcloud-talk/webview.js | |||
@@ -17,11 +17,10 @@ module.exports = Ferdi => { | |||
17 | 17 | ||
18 | let indirect = 0; | 18 | let indirect = 0; |
19 | 19 | ||
20 | document.querySelectorAll('.app-navigation-entry__counter').forEach( | 20 | for (const counter of document.querySelectorAll('.app-navigation-entry__counter')) { |
21 | (counter) => { | ||
22 | indirect += Number(counter.textContent); | 21 | indirect += Number(counter.textContent); |
23 | }, | 22 | } |
24 | ); | 23 | |
25 | Ferdi.setBadge(direct, indirect); | 24 | Ferdi.setBadge(direct, indirect); |
26 | }; | 25 | }; |
27 | 26 | ||