diff options
Diffstat (limited to 'recipes/enterprise-owa/webview.js')
-rw-r--r-- | recipes/enterprise-owa/webview.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/recipes/enterprise-owa/webview.js b/recipes/enterprise-owa/webview.js index e144c46..1fa1a12 100644 --- a/recipes/enterprise-owa/webview.js +++ b/recipes/enterprise-owa/webview.js | |||
@@ -1,16 +1,14 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | 1 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
5 | let unreadMail = 0; | 3 | let unreadMail = 0; |
6 | 4 | ||
7 | if (location.pathname.match(/\/owa/)) { | 5 | if (location.pathname.match(/\/owa/)) { |
8 | // classic app | 6 | // classic app |
9 | unreadMail = parseInt( | 7 | unreadMail = parseInt( |
10 | jQuery("span[title*='Inbox'] + div > span") | 8 | jQuery("span[title*='Inbox'] + div > span") |
11 | .first() | 9 | .first() |
12 | .text(), | 10 | .text(), |
13 | 10 | 11 | 10, |
14 | ); | 12 | ); |
15 | } else { | 13 | } else { |
16 | // new app | 14 | // new app |