diff options
author | 2022-04-18 06:51:50 -0500 | |
---|---|---|
committer | 2022-04-18 06:51:50 -0500 | |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/kimaicloud/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/kimaicloud/webview.js')
-rw-r--r-- | recipes/kimaicloud/webview.js | 10 |
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 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.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 | }; |