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/wrike/webview.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'recipes/wrike') diff --git a/recipes/wrike/webview.js b/recipes/wrike/webview.js index e09407d..93d5d53 100644 --- a/recipes/wrike/webview.js +++ b/recipes/wrike/webview.js @@ -1,13 +1,15 @@ -module.exports = (Ferdi) => { +module.exports = Ferdi => { const getMessages = () => { let directCount = 0; - const element = document.querySelector('.ws-navigation-button__indicator.ws-navigation-button-indicator'); + const element = document.querySelector( + '.ws-navigation-button__indicator.ws-navigation-button-indicator', + ); if (element) { - directCount = Ferdi.safeParseInt(element.innerText); + directCount = Ferdi.safeParseInt(element.textContent); } Ferdi.setBadge(directCount); - } + }; Ferdi.loop(getMessages); }; -- cgit v1.2.3-70-g09d2