aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/webex-teams
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/webex-teams
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-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')
-rw-r--r--recipes/webex-teams/index.js2
-rw-r--r--recipes/webex-teams/webview.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/recipes/webex-teams/index.js b/recipes/webex-teams/index.js
index 415aeea..23607bd 100644
--- a/recipes/webex-teams/index.js
+++ b/recipes/webex-teams/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; \ No newline at end of file module.exports = Ferdi => Ferdi;
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};