aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zimbra/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/zimbra/webview.js')
-rw-r--r--recipes/zimbra/webview.js6
1 files changed, 2 insertions, 4 deletions
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
3module.exports = Franz => { 1module.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};