aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/whereby
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-05 17:04:09 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-05 17:04:09 +0200
commitd3841b766f9d37d557646003899f67525c5f755f (patch)
tree1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/whereby
parentchore: repo maintenance (#732) (diff)
downloadferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/whereby')
-rw-r--r--recipes/whereby/webview.js4
1 files changed, 2 insertions, 2 deletions
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 => {
7 const elements = document.querySelectorAll('.CxUIE, .unread'); 7 const elements = document.querySelectorAll('.CxUIE, .unread');
8 let count = 0; 8 let count = 0;
9 9
10 for (let i = 0; i < elements.length; i += 1) { 10 for (const element of elements) {
11 if (elements[i].querySelectorAll('*[data-icon="muted"]').length === 0) { 11 if (element.querySelectorAll('*[data-icon="muted"]').length === 0) {
12 count += 1; 12 count += 1;
13 } 13 }
14 } 14 }