aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/slite/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/slite/webview.js')
-rw-r--r--recipes/slite/webview.js2
1 files changed, 1 insertions, 1 deletions
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 @@
1module.exports = Ferdi => { 1module.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 };