diff options
Diffstat (limited to 'recipes/monday/webview.js')
-rwxr-xr-x | recipes/monday/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js index 15f6335..aa0d9a8 100755 --- a/recipes/monday/webview.js +++ b/recipes/monday/webview.js | |||
@@ -8,8 +8,8 @@ module.exports = Ferdi => { | |||
8 | 8 | ||
9 | const counters = document.querySelectorAll('.surface-control-component .item-counter, .surface-control-component .view-item-counter'); | 9 | const counters = document.querySelectorAll('.surface-control-component .item-counter, .surface-control-component .view-item-counter'); |
10 | 10 | ||
11 | for (let i = 0; i < counters.length; i++) { | 11 | for (const counter of counters) { |
12 | count += Ferdi.safeParseInt(counters[i].textContent); | 12 | count += Ferdi.safeParseInt(counter.textContent); |
13 | } | 13 | } |
14 | 14 | ||
15 | Ferdi.setBadge(count); | 15 | Ferdi.setBadge(count); |