aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kimai-cloud
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/kimai-cloud')
-rw-r--r--recipes/kimai-cloud/index.js3
-rw-r--r--recipes/kimai-cloud/package.json2
-rw-r--r--recipes/kimai-cloud/webview.js9
3 files changed, 6 insertions, 8 deletions
diff --git a/recipes/kimai-cloud/index.js b/recipes/kimai-cloud/index.js
index 46f936f..23607bd 100644
--- a/recipes/kimai-cloud/index.js
+++ b/recipes/kimai-cloud/index.js
@@ -1,2 +1 @@
1// just pass through Franz module.exports = Ferdi => Ferdi;
2module.exports = Franz => Franz;
diff --git a/recipes/kimai-cloud/package.json b/recipes/kimai-cloud/package.json
index 550d0ef..f4c1dcf 100644
--- a/recipes/kimai-cloud/package.json
+++ b/recipes/kimai-cloud/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "kimaicloud", 2 "id": "kimaicloud",
3 "name": "Kimai Cloud", 3 "name": "Kimai Cloud",
4 "version": "1.0.2", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", 6 "repository": "https://github.com/kimai-cloud/recipe-kimaicloud",
7 "config": { 7 "config": {
diff --git a/recipes/kimai-cloud/webview.js b/recipes/kimai-cloud/webview.js
index fd12ce8..f4e2e9f 100644
--- a/recipes/kimai-cloud/webview.js
+++ b/recipes/kimai-cloud/webview.js
@@ -1,4 +1,4 @@
1module.exports = (Franz) => { 1module.exports = (Ferdi) => {
2 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
3 let count = 0; 3 let count = 0;
4 4
@@ -8,8 +8,8 @@ module.exports = (Franz) => {
8 count = label.textContent; 8 count = label.textContent;
9 } 9 }
10 10
11 // set Franz badge 11 // set Ferdi badge
12 Franz.setBadge(count); 12 Ferdi.setBadge(count);
13 }; 13 };
14 14
15 document.addEventListener('click', (e) => { 15 document.addEventListener('click', (e) => {
@@ -22,6 +22,5 @@ module.exports = (Franz) => {
22 } 22 }
23 }); 23 });
24 24
25 // check for new messages every second and update Franz badge 25 Ferdi.loop(getMessages);
26 Franz.loop(getMessages);
27}; 26};