aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/office365-owa/webview.js
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/webview.js
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/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 }