diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-05 17:04:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 17:04:09 +0200 |
commit | d3841b766f9d37d557646003899f67525c5f755f (patch) | |
tree | 1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/stackoverflow/webview.js | |
parent | chore: repo maintenance (#732) (diff) | |
download | ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip |
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/stackoverflow/webview.js')
-rw-r--r-- | recipes/stackoverflow/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/stackoverflow/webview.js b/recipes/stackoverflow/webview.js index 437fb49..83fd5dd 100644 --- a/recipes/stackoverflow/webview.js +++ b/recipes/stackoverflow/webview.js | |||
@@ -6,8 +6,8 @@ module.exports = (Ferdi) => { | |||
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | const elements = document.querySelectorAll('.CxUIE, .unread'); | 7 | const elements = document.querySelectorAll('.CxUIE, .unread'); |
8 | let count = 0; | 8 | let count = 0; |
9 | for (let i = 0; i < elements.length; i += 1) { | 9 | for (const element of elements) { |
10 | if (elements[i].querySelectorAll('*[data-icon="muted"]').length === 0) { | 10 | if (element.querySelectorAll('*[data-icon="muted"]').length === 0) { |
11 | count += 1; | 11 | count += 1; |
12 | } | 12 | } |
13 | } | 13 | } |