aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-12-08 07:36:10 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-12-08 07:36:10 +0530
commit3a179ab6fb0859da7acf81286bfde035495e6089 (patch)
tree0fa3af2d75bb913a044a597a8795f2498c7fdea1
parentadd chappy84 as a contributor for code (#258) [skip ci] (diff)
downloadferdium-recipes-3a179ab6fb0859da7acf81286bfde035495e6089.tar.gz
ferdium-recipes-3a179ab6fb0859da7acf81286bfde035495e6089.tar.zst
ferdium-recipes-3a179ab6fb0859da7acf81286bfde035495e6089.zip
Auto-fix from eslint triggered a version bump in element recipe
-rw-r--r--recipes/element/package.json2
-rw-r--r--recipes/element/webview.js4
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 @@
1{ 1{
2 "id": "element", 2 "id": "element",
3 "name": "Element", 3 "name": "Element",
4 "version": "1.3.1", 4 "version": "1.3.2",
5 "license": "MIT", 5 "license": "MIT",
6 "aliases": [ 6 "aliases": [
7 "Riot.im", 7 "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 => {
2 function getMessages() { 2 function getMessages() {
3 let directCount = 0; 3 let directCount = 0;
4 const spacesBar = document.querySelector('.mx_SpaceTreeLevel'); 4 const spacesBar = document.querySelector('.mx_SpaceTreeLevel');
5 spacesBar.querySelectorAll('.mx_NotificationBadge_count').forEach((badge) => { 5 for (const badge of spacesBar.querySelectorAll('.mx_NotificationBadge_count')) {
6 directCount += Ferdium.safeParseInt(badge.textContent); 6 directCount += Ferdium.safeParseInt(badge.textContent);
7 }); 7 }
8 const indirectCount = spacesBar.querySelectorAll('.mx_NotificationBadge_dot') 8 const indirectCount = spacesBar.querySelectorAll('.mx_NotificationBadge_dot')
9 .length; 9 .length;
10 Ferdium.setBadge(directCount, indirectCount); 10 Ferdium.setBadge(directCount, indirectCount);