aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamleader/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/teamleader/webview.js')
-rw-r--r--recipes/teamleader/webview.js14
1 files changed, 7 insertions, 7 deletions
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};