diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/wrike | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-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.js | 4 | ||||
-rw-r--r-- | recipes/wrike/webview.js | 6 |
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 |
4 | module.exports = Franz => Franz; \ No newline at end of file | 2 | module.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 | |||
3 | module.exports = (Franz, options) => { | 1 | module.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 | }; |