From d3841b766f9d37d557646003899f67525c5f755f Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 5 Oct 2021 17:04:09 +0200 Subject: chore: add eslint-plugin-unicorn (#733) --- recipes/plurk/webview.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'recipes/plurk/webview.js') 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 => { const re = document.querySelector('#noti_re_count'); if (np) { - direct += Ferdi.safeParseInt(np.innerHTML); + direct += Ferdi.safeParseInt(np.textContent); } if (re) { - direct += Ferdi.safeParseInt(re.innerHTML); + direct += Ferdi.safeParseInt(re.textContent); } Ferdi.setBadge(direct); - } + }; - Ferdi.loop(getMessages, 10000); + Ferdi.loop(getMessages, 10_000); }; -- cgit v1.2.3-70-g09d2