diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/kimai-cloud | |
parent | docs: fixed template file for creating recipe. (diff) | |
download | ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip |
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time.
- Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/kimai-cloud')
-rw-r--r-- | recipes/kimai-cloud/index.js | 3 | ||||
-rw-r--r-- | recipes/kimai-cloud/package.json | 2 | ||||
-rw-r--r-- | recipes/kimai-cloud/webview.js | 9 |
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; | |
2 | module.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 @@ | |||
1 | module.exports = (Franz) => { | 1 | module.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 | }; |