From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/teamleader/index.js | 2 +- recipes/teamleader/package.json | 2 +- recipes/teamleader/webview.js | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'recipes/teamleader') diff --git a/recipes/teamleader/index.js b/recipes/teamleader/index.js index 23607bd..dd41f72 100644 --- a/recipes/teamleader/index.js +++ b/recipes/teamleader/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/teamleader/package.json b/recipes/teamleader/package.json index 5b971da..0b1fe52 100644 --- a/recipes/teamleader/package.json +++ b/recipes/teamleader/package.json @@ -1,7 +1,7 @@ { "id": "teamleader", "name": "teamleader", - "version": "1.1.3", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://app.teamleader.eu/?gotologin", diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index f846f55..f530549 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js @@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let notifications = 0; let indirectNotifications = 0; @@ -18,24 +18,24 @@ module.exports = Ferdi => { const call_element = document.querySelector('#queue_amount'); if (notification_element) { - notifications = Ferdi.safeParseInt( + notifications = Ferdium.safeParseInt( notification_element.getAttribute('datacount'), ); } if (ticket_element != null) { - indirectNotifications = Ferdi.safeParseInt(ticket_element.textContent); + indirectNotifications = Ferdium.safeParseInt(ticket_element.textContent); } if (call_element) { - indirectNotifications += Ferdi.safeParseInt( + indirectNotifications += Ferdium.safeParseInt( call_element.getAttribute('datacount'), ); } - Ferdi.setBadge(notifications, indirectNotifications); + Ferdium.setBadge(notifications, indirectNotifications); }; - Ferdi.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.loop(getMessages); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-54-g00ecf