diff options
author | 2022-04-18 06:51:50 -0500 | |
---|---|---|
committer | 2022-04-18 06:51:50 -0500 | |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/simplenote/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/simplenote/webview.js')
-rw-r--r-- | recipes/simplenote/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/simplenote/webview.js b/recipes/simplenote/webview.js index ae392f5..b4180e4 100644 --- a/recipes/simplenote/webview.js +++ b/recipes/simplenote/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let count = 0; | 3 | let count = 0; |
4 | 4 | ||
@@ -11,12 +11,12 @@ module.exports = Ferdi => { | |||
11 | '.nav-item--messaging .nav-item__badge-count', | 11 | '.nav-item--messaging .nav-item__badge-count', |
12 | ); | 12 | ); |
13 | if (element) { | 13 | if (element) { |
14 | count = Ferdi.safeParseInt(element.textContent); | 14 | count = Ferdium.safeParseInt(element.textContent); |
15 | } | 15 | } |
16 | } | 16 | } |
17 | 17 | ||
18 | Ferdi.setBadge(count); | 18 | Ferdium.setBadge(count); |
19 | }; | 19 | }; |
20 | 20 | ||
21 | Ferdi.loop(getMessages); | 21 | Ferdium.loop(getMessages); |
22 | }; | 22 | }; |