From 155c4b832281348c16be1f4ef667e6e23dbf1bd8 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 27 Aug 2021 18:13:24 +0530 Subject: 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. --- recipes/kimai-cloud/index.js | 3 +-- recipes/kimai-cloud/package.json | 2 +- recipes/kimai-cloud/webview.js | 9 ++++----- 3 files changed, 6 insertions(+), 8 deletions(-) (limited to 'recipes/kimai-cloud') 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 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; 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 @@ { "id": "kimaicloud", "name": "Kimai Cloud", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", "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 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { let count = 0; @@ -8,8 +8,8 @@ module.exports = (Franz) => { count = label.textContent; } - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; document.addEventListener('click', (e) => { @@ -22,6 +22,5 @@ module.exports = (Franz) => { } }); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -- cgit v1.2.3-70-g09d2