aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/monday/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/monday/webview.js')
-rwxr-xr-xrecipes/monday/webview.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js
index e07e784..bdd73ca 100755
--- a/recipes/monday/webview.js
+++ b/recipes/monday/webview.js
@@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = Franz => { 5module.exports = Ferdi => {
6 const getMessages = function getMessages() { 6 const getMessages = function getMessages() {
7 let count = 0; 7 let count = 0;
8 8
@@ -12,9 +12,10 @@ module.exports = Franz => {
12 count += parseInt(counters[i].textContent); 12 count += parseInt(counters[i].textContent);
13 } 13 }
14 14
15 Franz.setBadge(count); 15 Ferdi.setBadge(count);
16 }; 16 };
17 17
18 Franz.injectCSS(_path.default.join(__dirname, 'service.css')); 18 Ferdi.loop(getMessages);
19 Franz.loop(getMessages); 19
20 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
20}; 21};