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/simplenote/index.js | 3 +-- recipes/simplenote/webview.js | 10 +++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'recipes/simplenote') diff --git a/recipes/simplenote/index.js b/recipes/simplenote/index.js index 18db071..15ecf81 100644 --- a/recipes/simplenote/index.js +++ b/recipes/simplenote/index.js @@ -1,2 +1 @@ -module.exports = Ferdi => class simplenote extends Ferdi { -}; +module.exports = Ferdi => class simplenote extends Ferdi {}; diff --git a/recipes/simplenote/webview.js b/recipes/simplenote/webview.js index 8d1afc8..ae392f5 100644 --- a/recipes/simplenote/webview.js +++ b/recipes/simplenote/webview.js @@ -3,11 +3,15 @@ module.exports = Ferdi => { let count = 0; if (window.location.pathname.includes('messaging')) { - count = document.querySelectorAll('.msg-conversation-card__unread-count').length; + count = document.querySelectorAll( + '.msg-conversation-card__unread-count', + ).length; } else { - const element = document.querySelector('.nav-item--messaging .nav-item__badge-count'); + const element = document.querySelector( + '.nav-item--messaging .nav-item__badge-count', + ); if (element) { - count = Ferdi.safeParseInt(element.innerHTML); + count = Ferdi.safeParseInt(element.textContent); } } -- cgit v1.2.3-54-g00ecf