diff options
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 | ||