diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/habitica | |
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/habitica')
-rwxr-xr-x | recipes/habitica/index.js | 2 | ||||
-rwxr-xr-x | recipes/habitica/webview.js | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/recipes/habitica/index.js b/recipes/habitica/index.js index 17daa35..258da41 100755 --- a/recipes/habitica/index.js +++ b/recipes/habitica/index.js | |||
@@ -1,3 +1 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | module.exports = Franz => Franz; | |
diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js index 66633cb..02b2e2d 100755 --- a/recipes/habitica/webview.js +++ b/recipes/habitica/webview.js | |||
@@ -1,9 +1,7 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = (Franz) => { | 1 | module.exports = (Franz) => { |
4 | const getMessages = () => { | 2 | const getMessages = () => { |
5 | let count = 0; | 3 | let count = 0; |
6 | let element = document.querySelector(".message-count"); | 4 | const element = document.querySelector('.message-count'); |
7 | if (element) { | 5 | if (element) { |
8 | count = Number(element.innerText); | 6 | count = Number(element.innerText); |
9 | if (Number.isNaN(count)) { | 7 | if (Number.isNaN(count)) { |