aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wrike
diff options
context:
space:
mode:
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};