diff options
Diffstat (limited to 'recipes/enterprise-owa')
-rw-r--r-- | recipes/enterprise-owa/index.js | 2 | ||||
-rw-r--r-- | recipes/enterprise-owa/webview.js | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/recipes/enterprise-owa/index.js b/recipes/enterprise-owa/index.js index 9157a2e..258da41 100644 --- a/recipes/enterprise-owa/index.js +++ b/recipes/enterprise-owa/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Franz => Franz; \ No newline at end of file | module.exports = Franz => Franz; | ||
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 |