From d3841b766f9d37d557646003899f67525c5f755f Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 5 Oct 2021 17:04:09 +0200 Subject: chore: add eslint-plugin-unicorn (#733) --- recipes/monday/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/monday/webview.js') 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 => { const counters = document.querySelectorAll('.surface-control-component .item-counter, .surface-control-component .view-item-counter'); - for (let i = 0; i < counters.length; i++) { - count += Ferdi.safeParseInt(counters[i].textContent); + for (const counter of counters) { + count += Ferdi.safeParseInt(counter.textContent); } Ferdi.setBadge(count); -- cgit v1.2.3-70-g09d2