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/habitica/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/habitica') diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js index c856fca..aa678b5 100755 --- a/recipes/habitica/webview.js +++ b/recipes/habitica/webview.js @@ -1,9 +1,9 @@ -module.exports = (Ferdi) => { +module.exports = Ferdi => { const getMessages = () => { let count = 0; const element = document.querySelector('.message-count'); if (element) { - count = Ferdi.safeParseInt(element.innerText); + count = Ferdi.safeParseInt(element.textContent); } Ferdi.setBadge(count); }; -- cgit v1.2.3-54-g00ecf