aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zimbra
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/zimbra
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/zimbra')
-rw-r--r--recipes/zimbra/index.js4
-rw-r--r--recipes/zimbra/webview.js6
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
3module.exports = Franz => class Zimbra extends Franz { 1module.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
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};