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/pulsesms/webview.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'recipes/pulsesms') diff --git a/recipes/pulsesms/webview.js b/recipes/pulsesms/webview.js index 48bb2ad..d6d123c 100644 --- a/recipes/pulsesms/webview.js +++ b/recipes/pulsesms/webview.js @@ -1,7 +1,9 @@ -module.exports = (Ferdi) => { +module.exports = Ferdi => { const getMessages = () => { - Ferdi.setBadge(document.querySelector('#unread_count').innerHTML.replace(/\s/g, '')); - } + Ferdi.setBadge( + document.querySelector('#unread_count').textContent.replace(/\s/g, ''), + ); + }; Ferdi.loop(getMessages); }; -- cgit v1.2.3-70-g09d2