aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/office365-owa/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/office365-owa/webview.js')
-rw-r--r--recipes/office365-owa/webview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/office365-owa/webview.js b/recipes/office365-owa/webview.js
index 1a04132..82c7dfd 100644
--- a/recipes/office365-owa/webview.js
+++ b/recipes/office365-owa/webview.js
@@ -12,7 +12,7 @@ module.exports = Ferdi => {
12 if (foldersElement) { 12 if (foldersElement) {
13 const allScreenReaders = foldersElement.querySelectorAll('span.screenReaderOnly'); 13 const allScreenReaders = foldersElement.querySelectorAll('span.screenReaderOnly');
14 for (const child of allScreenReaders) { 14 for (const child of allScreenReaders) {
15 if ((child.innerText === 'unread' || child.innerText === 'item') && child.previousSibling) { 15 if (child.previousSibling) {
16 directUnreadCount += Ferdi.safeParseInt(child.previousSibling.innerText); 16 directUnreadCount += Ferdi.safeParseInt(child.previousSibling.innerText);
17 } 17 }
18 } 18 }
@@ -22,7 +22,7 @@ module.exports = Ferdi => {
22 if (groupsElement) { 22 if (groupsElement) {
23 const allScreenReaders = groupsElement.querySelectorAll('span.screenReaderOnly'); 23 const allScreenReaders = groupsElement.querySelectorAll('span.screenReaderOnly');
24 for (const child of allScreenReaders) { 24 for (const child of allScreenReaders) {
25 if ((child.innerText === 'unread' || child.innerText === 'item') && child.previousSibling) { 25 if (child.previousSibling) {
26 indirectUnreadCount += Ferdi.safeParseInt(child.previousSibling.innerText); 26 indirectUnreadCount += Ferdi.safeParseInt(child.previousSibling.innerText);
27 } 27 }
28 } 28 }