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/stride/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/stride') diff --git a/recipes/stride/webview.js b/recipes/stride/webview.js index 6b62e08..002fca5 100644 --- a/recipes/stride/webview.js +++ b/recipes/stride/webview.js @@ -10,7 +10,7 @@ module.exports = Ferdi => { let indirectCount = 0; // get unread direct messages by tring to read the badge values - allBadges.forEach(item => { + for (const item of allBadges) { if (item.hasAttribute('data-count')) { // Count for DMs should be in the data-count attribute directCount += Math.max(1, +item.getAttribute('data-count')); @@ -18,7 +18,7 @@ module.exports = Ferdi => { // this will be the case for indirect messages indirectCount++; } - }); + } // set Ferdi badge Ferdi.setBadge(directCount, indirectCount); -- cgit v1.2.3-70-g09d2