aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamleader
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/teamleader
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/teamleader')
-rw-r--r--recipes/teamleader/index.js2
-rw-r--r--recipes/teamleader/package.json2
-rw-r--r--recipes/teamleader/webview.js14
3 files changed, 9 insertions, 9 deletions
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 @@
1{ 1{
2 "id": "teamleader", 2 "id": "teamleader",
3 "name": "teamleader", 3 "name": "teamleader",
4 "version": "1.1.3", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://app.teamleader.eu/?gotologin", 7 "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) {
4 return obj && obj.__esModule ? obj : { default: obj }; 4 return obj && obj.__esModule ? obj : { default: obj };
5} 5}
6 6
7module.exports = Ferdi => { 7module.exports = Ferdium => {
8 const getMessages = () => { 8 const getMessages = () => {
9 let notifications = 0; 9 let notifications = 0;
10 let indirectNotifications = 0; 10 let indirectNotifications = 0;
@@ -18,24 +18,24 @@ module.exports = Ferdi => {
18 const call_element = document.querySelector('#queue_amount'); 18 const call_element = document.querySelector('#queue_amount');
19 19
20 if (notification_element) { 20 if (notification_element) {
21 notifications = Ferdi.safeParseInt( 21 notifications = Ferdium.safeParseInt(
22 notification_element.getAttribute('datacount'), 22 notification_element.getAttribute('datacount'),
23 ); 23 );
24 } 24 }
25 25
26 if (ticket_element != null) { 26 if (ticket_element != null) {
27 indirectNotifications = Ferdi.safeParseInt(ticket_element.textContent); 27 indirectNotifications = Ferdium.safeParseInt(ticket_element.textContent);
28 } 28 }
29 29
30 if (call_element) { 30 if (call_element) {
31 indirectNotifications += Ferdi.safeParseInt( 31 indirectNotifications += Ferdium.safeParseInt(
32 call_element.getAttribute('datacount'), 32 call_element.getAttribute('datacount'),
33 ); 33 );
34 } 34 }
35 35
36 Ferdi.setBadge(notifications, indirectNotifications); 36 Ferdium.setBadge(notifications, indirectNotifications);
37 }; 37 };
38 38
39 Ferdi.loop(getMessages); 39 Ferdium.loop(getMessages);
40 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); 40 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
41}; 41};