diff options
Diffstat (limited to 'recipes/plurk/webview.js')
-rw-r--r-- | recipes/plurk/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/plurk/webview.js b/recipes/plurk/webview.js index 09f15da..dfacf30 100644 --- a/recipes/plurk/webview.js +++ b/recipes/plurk/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let direct = 0; | 3 | let direct = 0; |
4 | 4 | ||
@@ -6,14 +6,14 @@ module.exports = Ferdi => { | |||
6 | const re = document.querySelector('#noti_re_count'); | 6 | const re = document.querySelector('#noti_re_count'); |
7 | 7 | ||
8 | if (np) { | 8 | if (np) { |
9 | direct += Ferdi.safeParseInt(np.textContent); | 9 | direct += Ferdium.safeParseInt(np.textContent); |
10 | } | 10 | } |
11 | if (re) { | 11 | if (re) { |
12 | direct += Ferdi.safeParseInt(re.textContent); | 12 | direct += Ferdium.safeParseInt(re.textContent); |
13 | } | 13 | } |
14 | 14 | ||
15 | Ferdi.setBadge(direct); | 15 | Ferdium.setBadge(direct); |
16 | }; | 16 | }; |
17 | 17 | ||
18 | Ferdi.loop(getMessages, 10_000); | 18 | Ferdium.loop(getMessages, 10_000); |
19 | }; | 19 | }; |