aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kimai-cloud/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/kimai-cloud/webview.js
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-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/webview.js')
-rw-r--r--recipes/kimai-cloud/webview.js9
1 files changed, 4 insertions, 5 deletions
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};