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/package.json | 2 +- recipes/element/webview.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/element/package.json b/recipes/element/package.json index beba777..d694444 100644 --- a/recipes/element/package.json +++ b/recipes/element/package.json @@ -1,7 +1,7 @@ { "id": "element", "name": "Element", - "version": "1.3.1", + "version": "1.3.2", "license": "MIT", "aliases": [ "Riot.im", 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-54-g00ecf