aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/stackoverflow/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/stackoverflow/webview.js')
-rw-r--r--recipes/stackoverflow/webview.js4
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 }