diff options
Diffstat (limited to 'recipes/thelounge')
-rw-r--r-- | recipes/thelounge/package.json | 2 | ||||
-rw-r--r-- | recipes/thelounge/webview.js | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/recipes/thelounge/package.json b/recipes/thelounge/package.json index 816a4b1..a954b43 100644 --- a/recipes/thelounge/package.json +++ b/recipes/thelounge/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "thelounge", | 2 | "id": "thelounge", |
3 | "name": "The Lounge", | 3 | "name": "The Lounge", |
4 | "version": "1.1.0", | 4 | "version": "1.1.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "hasCustomUrl": true, | 7 | "hasCustomUrl": true, |
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 | ||