aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pulsesms/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/pulsesms/webview.js')
-rw-r--r--recipes/pulsesms/webview.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes/pulsesms/webview.js b/recipes/pulsesms/webview.js
index 48bb2ad..d6d123c 100644
--- a/recipes/pulsesms/webview.js
+++ b/recipes/pulsesms/webview.js
@@ -1,7 +1,9 @@
1module.exports = (Ferdi) => { 1module.exports = Ferdi => {
2 const getMessages = () => { 2 const getMessages = () => {
3 Ferdi.setBadge(document.querySelector('#unread_count').innerHTML.replace(/\s/g, '')); 3 Ferdi.setBadge(
4 } 4 document.querySelector('#unread_count').textContent.replace(/\s/g, ''),
5 );
6 };
5 7
6 Ferdi.loop(getMessages); 8 Ferdi.loop(getMessages);
7}; 9};