aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/slite
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/slite
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/slite')
-rw-r--r--recipes/slite/index.js2
-rw-r--r--recipes/slite/webview.js8
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
3module.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"; 1const getInnerInt = selector => {
2
3let 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
8module.exports = Ferdi => { 6module.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