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/idobata/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/idobata') diff --git a/recipes/idobata/webview.js b/recipes/idobata/webview.js index 075316d..d30e2ad 100644 --- a/recipes/idobata/webview.js +++ b/recipes/idobata/webview.js @@ -1,10 +1,10 @@ module.exports = Ferdi => { const getMessages = () => { - const title = document.querySelector('title').innerHTML.match(/\d+/); + const title = document.querySelector('title').textContent.match(/\d+/); const count = title !== null ? title[0] : 0; Ferdi.setBadge(count); - } + }; Ferdi.loop(getMessages); }; -- cgit v1.2.3-70-g09d2