diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/webex-teams/webview.js | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/webex-teams/webview.js')
-rw-r--r-- | recipes/webex-teams/webview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/webex-teams/webview.js b/recipes/webex-teams/webview.js index bcce61b..24a36fd 100644 --- a/recipes/webex-teams/webview.js +++ b/recipes/webex-teams/webview.js | |||
@@ -3,13 +3,13 @@ module.exports = (Franz) => { | |||
3 | let count = 0; | 3 | let count = 0; |
4 | 4 | ||
5 | let span = document.getElementsByClassName('navigation-list-item--badgeCount'); | 5 | let span = document.getElementsByClassName('navigation-list-item--badgeCount'); |
6 | 6 | ||
7 | if (span.length == 0) { | 7 | if (span.length == 0) { |
8 | span = document.getElementsByClassName('navigation-list-item--badgeCount-minimized'); | 8 | span = document.getElementsByClassName('navigation-list-item--badgeCount-minimized'); |
9 | } | 9 | } |
10 | 10 | ||
11 | if (span.length > 0) { | 11 | if (span.length > 0) { |
12 | count = parseInt(span[0].innerText, 10) | 12 | count = parseInt(span[0].innerText, 10); |
13 | } | 13 | } |
14 | 14 | ||
15 | if (Number.isNaN(count)) { | 15 | if (Number.isNaN(count)) { |
@@ -19,4 +19,4 @@ module.exports = (Franz) => { | |||
19 | Franz.setBadge(count); | 19 | Franz.setBadge(count); |
20 | }; | 20 | }; |
21 | Franz.loop(getMessages); | 21 | Franz.loop(getMessages); |
22 | }; \ No newline at end of file | 22 | }; |