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/whereby/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/whereby') diff --git a/recipes/whereby/webview.js b/recipes/whereby/webview.js index 52d6d7b..eb751a5 100644 --- a/recipes/whereby/webview.js +++ b/recipes/whereby/webview.js @@ -7,8 +7,8 @@ module.exports = Ferdi => { const elements = document.querySelectorAll('.CxUIE, .unread'); let count = 0; - for (let i = 0; i < elements.length; i += 1) { - if (elements[i].querySelectorAll('*[data-icon="muted"]').length === 0) { + for (const element of elements) { + if (element.querySelectorAll('*[data-icon="muted"]').length === 0) { count += 1; } } -- cgit v1.2.3-54-g00ecf