diff options
Diffstat (limited to 'uncompressed/office365-owa/webview.js')
-rw-r--r-- | uncompressed/office365-owa/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uncompressed/office365-owa/webview.js b/uncompressed/office365-owa/webview.js index e144c46..ae21e19 100644 --- a/uncompressed/office365-owa/webview.js +++ b/uncompressed/office365-owa/webview.js | |||
@@ -3,7 +3,7 @@ | |||
3 | module.exports = Franz => { | 3 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 4 | const getMessages = function getMessages() { |
5 | let unreadMail = 0; | 5 | let unreadMail = 0; |
6 | 6 | ||
7 | if (location.pathname.match(/\/owa/)) { | 7 | if (location.pathname.match(/\/owa/)) { |
8 | // classic app | 8 | // classic app |
9 | unreadMail = parseInt( | 9 | unreadMail = parseInt( |
@@ -19,7 +19,7 @@ module.exports = Franz => { | |||
19 | return; | 19 | return; |
20 | } | 20 | } |
21 | 21 | ||
22 | unreadMail = [...folders.parentNode.children].reduce((count, child) => { | 22 | unreadMail = [...folders.parentNode.parentNode.children].reduce((count, child) => { |
23 | const unread = child.querySelector('.screenReaderOnly'); | 23 | const unread = child.querySelector('.screenReaderOnly'); |
24 | return unread && unread.textContent === 'unread' | 24 | return unread && unread.textContent === 'unread' |
25 | ? count + parseInt(unread.previousSibling.textContent, 10) | 25 | ? count + parseInt(unread.previousSibling.textContent, 10) |