diff options
author | 2022-04-18 06:51:50 -0500 | |
---|---|---|
committer | 2022-04-18 06:51:50 -0500 | |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/teamleader/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-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/webview.js')
-rw-r--r-- | recipes/teamleader/webview.js | 14 |
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 | ||
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 | }; |