diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/slite | |
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/slite')
-rw-r--r-- | recipes/slite/index.js | 2 | ||||
-rw-r--r-- | recipes/slite/webview.js | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/recipes/slite/index.js b/recipes/slite/index.js index cd5b37c..23607bd 100644 --- a/recipes/slite/index.js +++ b/recipes/slite/index.js | |||
@@ -1,3 +1 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Ferdi => Ferdi; | module.exports = Ferdi => Ferdi; | |
diff --git a/recipes/slite/webview.js b/recipes/slite/webview.js index 1d6957a..d892c3c 100644 --- a/recipes/slite/webview.js +++ b/recipes/slite/webview.js | |||
@@ -1,13 +1,11 @@ | |||
1 | "use strict"; | 1 | const getInnerInt = selector => { |
2 | |||
3 | let getInnerInt = selector => { | ||
4 | const element = document.querySelector(selector); | 2 | const element = document.querySelector(selector); |
5 | return element && parseInt(element.innerText); | 3 | return element && parseInt(element.innerText); |
6 | } | 4 | }; |
7 | 5 | ||
8 | module.exports = Ferdi => { | 6 | module.exports = Ferdi => { |
9 | const getMessages = function getMessages() { | 7 | const getMessages = function getMessages() { |
10 | let direct = ( | 8 | const direct = ( |
11 | getInnerInt("#app button[data-test-id='notificationsCount']") || 0 | 9 | getInnerInt("#app button[data-test-id='notificationsCount']") || 0 |
12 | ); | 10 | ); |
13 | 11 | ||