aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/office365-owa
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-09-11 23:12:08 +0530
committerLibravatar GitHub <noreply@github.com>2021-09-11 23:12:08 +0530
commit804d22a06447b0a8ab6acab2aca7f02d939d2d62 (patch)
tree66c05f754d3ee134f4ec3b5895af6d5d5910c9b6 /recipes/office365-owa
parentupdate WhatsApp webview.js for non-English locales (#680) (diff)
downloadferdium-recipes-804d22a06447b0a8ab6acab2aca7f02d939d2d62.tar.gz
ferdium-recipes-804d22a06447b0a8ab6acab2aca7f02d939d2d62.tar.zst
ferdium-recipes-804d22a06447b0a8ab6acab2aca7f02d939d2d62.zip
fix issue with Office365 not getting unread counts in non-english locale (fixes #679) (#681)
Diffstat (limited to 'recipes/office365-owa')
-rw-r--r--recipes/office365-owa/package.json2
-rw-r--r--recipes/office365-owa/webview.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/office365-owa/package.json b/recipes/office365-owa/package.json
index 3d13fef..bd3ca9c 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.4.4", 4 "version": "1.4.5",
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 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 }