diff options
author | 2022-12-08 07:36:10 +0530 | |
---|---|---|
committer | 2022-12-08 07:36:10 +0530 | |
commit | 3a179ab6fb0859da7acf81286bfde035495e6089 (patch) | |
tree | 0fa3af2d75bb913a044a597a8795f2498c7fdea1 /recipes/element/webview.js | |
parent | add chappy84 as a contributor for code (#258) [skip ci] (diff) | |
download | ferdium-recipes-3a179ab6fb0859da7acf81286bfde035495e6089.tar.gz ferdium-recipes-3a179ab6fb0859da7acf81286bfde035495e6089.tar.zst ferdium-recipes-3a179ab6fb0859da7acf81286bfde035495e6089.zip |
Auto-fix from eslint triggered a version bump in element recipe
Diffstat (limited to 'recipes/element/webview.js')
-rw-r--r-- | recipes/element/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |