From 97697e3d069972844b2912a93022f4a4904a40d6 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 31 Jul 2021 15:28:23 +0530 Subject: Fixed eslintrc as root for this folder; Reformatted all files. --- recipes/slite/index.js | 2 -- recipes/slite/webview.js | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'recipes/slite') 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 @@ -"use strict"; - 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 @@ -"use strict"; - -let getInnerInt = selector => { +const getInnerInt = selector => { const element = document.querySelector(selector); return element && parseInt(element.innerText); -} +}; module.exports = Ferdi => { const getMessages = function getMessages() { - let direct = ( + const direct = ( getInnerInt("#app button[data-test-id='notificationsCount']") || 0 ); -- cgit v1.2.3-70-g09d2