diff options
Diffstat (limited to 'recipes/thelounge/webview.js')
-rw-r--r-- | recipes/thelounge/webview.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes/thelounge/webview.js b/recipes/thelounge/webview.js index e993264..7174749 100644 --- a/recipes/thelounge/webview.js +++ b/recipes/thelounge/webview.js | |||
@@ -4,9 +4,10 @@ module.exports = Ferdi => { | |||
4 | const direct = document.querySelectorAll('.badge.highlight').length; | 4 | const direct = document.querySelectorAll('.badge.highlight').length; |
5 | let indirect = 0; | 5 | let indirect = 0; |
6 | for (let i = 0; i < indirectElements.length; i += 1) { | 6 | for (let i = 0; i < indirectElements.length; i += 1) { |
7 | if (indirectElements[i].innerHTML.length > 0) indirect++; | 7 | if (indirectElements[i].innerHTML.length > 0) { |
8 | indirect++; | ||
9 | } | ||
8 | } | 10 | } |
9 | console.log(direct, indirect); | ||
10 | Ferdi.setBadge(direct, indirect); | 11 | Ferdi.setBadge(direct, indirect); |
11 | }; | 12 | }; |
12 | 13 | ||