diff options
Diffstat (limited to 'recipes/zimbra')
-rw-r--r-- | recipes/zimbra/index.js | 4 | ||||
-rw-r--r-- | recipes/zimbra/webview.js | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/recipes/zimbra/index.js b/recipes/zimbra/index.js index 729a4bb..94357a3 100644 --- a/recipes/zimbra/index.js +++ b/recipes/zimbra/index.js | |||
@@ -1,7 +1,5 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => class Zimbra extends Franz { | 1 | module.exports = Franz => class Zimbra extends Franz { |
4 | async validateUrl(url) { | 2 | async validateUrl(url) { |
5 | return true; | 3 | return true; |
6 | } | 4 | } |
7 | }; \ No newline at end of file | 5 | }; |
diff --git a/recipes/zimbra/webview.js b/recipes/zimbra/webview.js index aaaa952..f56f09d 100644 --- a/recipes/zimbra/webview.js +++ b/recipes/zimbra/webview.js | |||
@@ -1,5 +1,3 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => { | 1 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
5 | const { title } = document; | 3 | const { title } = document; |
@@ -7,7 +5,7 @@ module.exports = Franz => { | |||
7 | 5 | ||
8 | if (regex.test(title)) { | 6 | if (regex.test(title)) { |
9 | Franz.setBadge( | 7 | Franz.setBadge( |
10 | Number(regex.exec(title)[0]) | 8 | Number(regex.exec(title)[0]), |
11 | ); | 9 | ); |
12 | } else { | 10 | } else { |
13 | Franz.setBadge(0); | 11 | Franz.setBadge(0); |
@@ -15,4 +13,4 @@ module.exports = Franz => { | |||
15 | }; | 13 | }; |
16 | 14 | ||
17 | Franz.loop(getMessages); | 15 | Franz.loop(getMessages); |
18 | }; \ No newline at end of file | 16 | }; |