diff options
Diffstat (limited to 'recipes/slite')
-rw-r--r-- | recipes/slite/package.json | 2 | ||||
-rw-r--r-- | recipes/slite/webview.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/slite/package.json b/recipes/slite/package.json index 44ec123..4f1b753 100644 --- a/recipes/slite/package.json +++ b/recipes/slite/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "slite", | 2 | "id": "slite", |
3 | "name": "Slite", | 3 | "name": "Slite", |
4 | "version": "1.0.4", | 4 | "version": "1.0.5", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://{teamId}.slite.com", | 7 | "serviceURL": "https://{teamId}.slite.com", |
diff --git a/recipes/slite/webview.js b/recipes/slite/webview.js index a044399..d54b2d3 100644 --- a/recipes/slite/webview.js +++ b/recipes/slite/webview.js | |||
@@ -1,5 +1,5 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = () => { |
3 | const element = document.querySelector("#app button[data-test-id='notificationsCount']"); | 3 | const element = document.querySelector("#app button[data-test-id='notificationsCount']"); |
4 | Ferdi.setBadge(element ? Ferdi.safeParseInt(element.innerText) : 0); | 4 | Ferdi.setBadge(element ? Ferdi.safeParseInt(element.innerText) : 0); |
5 | }; | 5 | }; |