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/zalo/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/zalo/webview.js') diff --git a/recipes/zalo/webview.js b/recipes/zalo/webview.js index a79e29b..9ccc93b 100644 --- a/recipes/zalo/webview.js +++ b/recipes/zalo/webview.js @@ -1,6 +1,6 @@ module.exports = Ferdi => { const getMessages = () => { - const notificationBadge = document.getElementsByClassName('tab-red-dot').length; + const notificationBadge = document.querySelectorAll('.tab-red-dot').length; Ferdi.setBadge(notificationBadge); }; -- cgit v1.2.3-70-g09d2