aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kimaicloud/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/kimaicloud/webview.js')
-rw-r--r--recipes/kimaicloud/webview.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/kimaicloud/webview.js b/recipes/kimaicloud/webview.js
index 975b53d..2855aa2 100644
--- a/recipes/kimaicloud/webview.js
+++ b/recipes/kimaicloud/webview.js
@@ -1,15 +1,15 @@
1module.exports = (Ferdi) => { 1module.exports = (Ferdium) => {
2 const getMessages = () => { 2 const getMessages = () => {
3 let count = 0; 3 let count = 0;
4 4
5 // get amount of running timesheets 5 // get amount of running timesheets
6 const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); 6 const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label');
7 if (label !== undefined) { 7 if (label !== undefined) {
8 count = Ferdi.safeParseInt(label.textContent); 8 count = Ferdium.safeParseInt(label.textContent);
9 } 9 }
10 10
11 // set Ferdi badge 11 // set Ferdium badge
12 Ferdi.setBadge(count); 12 Ferdium.setBadge(count);
13 }; 13 };
14 14
15 document.addEventListener('click', (e) => { 15 document.addEventListener('click', (e) => {
@@ -22,5 +22,5 @@ module.exports = (Ferdi) => {
22 } 22 }
23 }); 23 });
24 24
25 Ferdi.loop(getMessages); 25 Ferdium.loop(getMessages);
26}; 26};