aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/plurk/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/plurk/webview.js')
-rw-r--r--recipes/plurk/webview.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/plurk/webview.js b/recipes/plurk/webview.js
index c79853d..09f15da 100644
--- a/recipes/plurk/webview.js
+++ b/recipes/plurk/webview.js
@@ -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.innerHTML); 9 direct += Ferdi.safeParseInt(np.textContent);
10 } 10 }
11 if (re) { 11 if (re) {
12 direct += Ferdi.safeParseInt(re.innerHTML); 12 direct += Ferdi.safeParseInt(re.textContent);
13 } 13 }
14 14
15 Ferdi.setBadge(direct); 15 Ferdi.setBadge(direct);
16 } 16 };
17 17
18 Ferdi.loop(getMessages, 10000); 18 Ferdi.loop(getMessages, 10_000);
19}; 19};