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/jira/webview.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'recipes/jira/webview.js') diff --git a/recipes/jira/webview.js b/recipes/jira/webview.js index 246511e..9599b66 100644 --- a/recipes/jira/webview.js +++ b/recipes/jira/webview.js @@ -1,8 +1,10 @@ -module.exports = (Ferdi) => { +module.exports = Ferdi => { const getMessages = () => { // get unread messages - const element = document.querySelector('#atlassian-navigation-notification-count span'); - Ferdi.setBadge(element ? element.innerText : 0); + const element = document.querySelector( + '#atlassian-navigation-notification-count span', + ); + Ferdi.setBadge(element ? element.textContent : 0); }; Ferdi.loop(getMessages); -- cgit v1.2.3-70-g09d2