diff options
Diffstat (limited to 'recipes/whereby/webview.js')
-rw-r--r-- | recipes/whereby/webview.js | 4 |
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 | } |