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/disqus/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/disqus/webview.js')
-rw-r--r-- | recipes/disqus/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/disqus/webview.js b/recipes/disqus/webview.js index fcdd386..2de4b43 100644 --- a/recipes/disqus/webview.js +++ b/recipes/disqus/webview.js | |||
@@ -1,7 +1,7 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getInnerInt = selector => { | 2 | const getInnerInt = selector => { |
3 | const element = document.querySelector(selector); | 3 | const element = document.querySelector(selector); |
4 | return element && Ferdi.safeParseInt(element.textContent); | 4 | return element && Ferdium.safeParseInt(element.textContent); |
5 | }; | 5 | }; |
6 | 6 | ||
7 | const getMessages = () => { | 7 | const getMessages = () => { |
@@ -10,8 +10,8 @@ module.exports = Ferdi => { | |||
10 | getInnerInt('a.has-notifs div.notif-count') || | 10 | getInnerInt('a.has-notifs div.notif-count') || |
11 | 0; | 11 | 0; |
12 | 12 | ||
13 | Ferdi.setBadge(direct); | 13 | Ferdium.setBadge(direct); |
14 | }; | 14 | }; |
15 | 15 | ||
16 | Ferdi.loop(getMessages); | 16 | Ferdium.loop(getMessages); |
17 | }; | 17 | }; |