diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/teamwork-projects/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/teamwork-projects/webview.js')
-rw-r--r-- | recipes/teamwork-projects/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/teamwork-projects/webview.js b/recipes/teamwork-projects/webview.js index 7d3e845..ca3df22 100644 --- a/recipes/teamwork-projects/webview.js +++ b/recipes/teamwork-projects/webview.js | |||
@@ -1,14 +1,14 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let indirectCount = 0; | 3 | let indirectCount = 0; |
4 | const badge = document.querySelector('#numNotifs2'); | 4 | const badge = document.querySelector('#numNotifs2'); |
5 | 5 | ||
6 | if (badge && badge.textContent) { | 6 | if (badge && badge.textContent) { |
7 | indirectCount = Ferdi.safeParseInt(badge.textContent); | 7 | indirectCount = Ferdium.safeParseInt(badge.textContent); |
8 | } | 8 | } |
9 | 9 | ||
10 | Ferdi.setBadge(0, indirectCount); | 10 | Ferdium.setBadge(0, indirectCount); |
11 | }; | 11 | }; |
12 | 12 | ||
13 | Ferdi.loop(getMessages); | 13 | Ferdium.loop(getMessages); |
14 | }; | 14 | }; |