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.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes/office365-owa/webview.js b/recipes/office365-owa/webview.js
index 5026249..0a0d2f3 100644
--- a/recipes/office365-owa/webview.js
+++ b/recipes/office365-owa/webview.js
@@ -14,7 +14,9 @@ module.exports = (Ferdium, settings) => {
14 ); 14 );
15 for (const child of allScreenReaders) { 15 for (const child of allScreenReaders) {
16 if (child.previousSibling) { 16 if (child.previousSibling) {
17 unreadCount += Ferdium.safeParseInt(child.previousSibling.textContent); 17 unreadCount += Ferdium.safeParseInt(
18 child.previousSibling.textContent,
19 );
18 } 20 }
19 } 21 }
20 } 22 }
@@ -27,7 +29,8 @@ module.exports = (Ferdium, settings) => {
27 if (/\/owa/.test(location.pathname)) { 29 if (/\/owa/.test(location.pathname)) {
28 // classic app 30 // classic app
29 directUnreadCount = Ferdium.safeParseInt( 31 directUnreadCount = Ferdium.safeParseInt(
30 document.querySelectorAll("span[title*='Inbox'] + div > span")[0]?.textContent 32 document.querySelectorAll("span[title*='Inbox'] + div > span")[0]
33 ?.textContent,
31 ); 34 );
32 } else { 35 } else {
33 // new app 36 // new app