From 3a179ab6fb0859da7acf81286bfde035495e6089 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Thu, 8 Dec 2022 07:36:10 +0530 Subject: Auto-fix from eslint triggered a version bump in element recipe --- recipes/element/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/element/webview.js') diff --git a/recipes/element/webview.js b/recipes/element/webview.js index 3528418..6ff8664 100644 --- a/recipes/element/webview.js +++ b/recipes/element/webview.js @@ -2,9 +2,9 @@ module.exports = Ferdium => { function getMessages() { let directCount = 0; const spacesBar = document.querySelector('.mx_SpaceTreeLevel'); - spacesBar.querySelectorAll('.mx_NotificationBadge_count').forEach((badge) => { + for (const badge of spacesBar.querySelectorAll('.mx_NotificationBadge_count')) { directCount += Ferdium.safeParseInt(badge.textContent); - }); + } const indirectCount = spacesBar.querySelectorAll('.mx_NotificationBadge_dot') .length; Ferdium.setBadge(directCount, indirectCount); -- cgit v1.2.3-70-g09d2