diff options
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 | }; |