aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wrike
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/wrike
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/wrike')
-rw-r--r--recipes/wrike/index.js4
-rw-r--r--recipes/wrike/webview.js6
2 files changed, 3 insertions, 7 deletions
diff --git a/recipes/wrike/index.js b/recipes/wrike/index.js
index 8fbf1bf..46f936f 100644
--- a/recipes/wrike/index.js
+++ b/recipes/wrike/index.js
@@ -1,4 +1,2 @@
1'use strict';
2
3// just pass through Franz 1// just pass through Franz
4module.exports = Franz => Franz; \ No newline at end of file 2module.exports = Franz => Franz;
diff --git a/recipes/wrike/webview.js b/recipes/wrike/webview.js
index 7aaeba4..359d93a 100644
--- a/recipes/wrike/webview.js
+++ b/recipes/wrike/webview.js
@@ -1,9 +1,7 @@
1'use strict';
2
3module.exports = (Franz, options) => { 1module.exports = (Franz, options) => {
4 function getMessages() { 2 function getMessages() {
5 let directCount = 0; 3 let directCount = 0;
6 let element = document.querySelector('.ws-navigation-button__indicator.ws-navigation-button-indicator'); 4 const element = document.querySelector('.ws-navigation-button__indicator.ws-navigation-button-indicator');
7 5
8 if (element && element.innerText) { 6 if (element && element.innerText) {
9 directCount = parseInt(element.innerText); 7 directCount = parseInt(element.innerText);
@@ -13,4 +11,4 @@ module.exports = (Franz, options) => {
13 } 11 }
14 12
15 Franz.loop(getMessages); 13 Franz.loop(getMessages);
16} 14};