diff options
Diffstat (limited to 'recipes/teamleader')
-rw-r--r-- | recipes/teamleader/index.js | 2 | ||||
-rw-r--r-- | recipes/teamleader/package.json | 2 | ||||
-rw-r--r-- | recipes/teamleader/webview.js | 14 |
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 | ||
7 | module.exports = Ferdi => { | 7 | module.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 | }; |