aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/office365-owa
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/office365-owa')
-rw-r--r--recipes/office365-owa/package.json2
-rw-r--r--recipes/office365-owa/webview.js7
2 files changed, 6 insertions, 3 deletions
diff --git a/recipes/office365-owa/package.json b/recipes/office365-owa/package.json
index 72082ab..b714e11 100644
--- a/recipes/office365-owa/package.json
+++ b/recipes/office365-owa/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "office365-owa", 2 "id": "office365-owa",
3 "name": "Office 365 Outlook", 3 "name": "Office 365 Outlook",
4 "version": "1.7.0", 4 "version": "1.7.1",
5 "license": "MIT", 5 "license": "MIT",
6 "aliases": [ 6 "aliases": [
7 "live.com", 7 "live.com",
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