diff options
Diffstat (limited to 'recipes/pulsesms/webview.js')
-rw-r--r-- | recipes/pulsesms/webview.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/recipes/pulsesms/webview.js b/recipes/pulsesms/webview.js index 2e6b46d..6904fbc 100644 --- a/recipes/pulsesms/webview.js +++ b/recipes/pulsesms/webview.js | |||
@@ -1,8 +1,7 @@ | |||
1 | module.exports = (Franz) => { | 1 | module.exports = (Ferdi) => { |
2 | function getMessages() { | 2 | function getMessages() { |
3 | Franz.setBadge(document.querySelector('#unread_count').innerHTML.replace(/\s/g, '')); | 3 | Ferdi.setBadge(document.querySelector('#unread_count').innerHTML.replace(/\s/g, '')); |
4 | } | 4 | } |
5 | 5 | ||
6 | // check for new messages every second and update Franz badge | 6 | Ferdi.loop(getMessages); |
7 | Franz.loop(getMessages); | ||
8 | }; | 7 | }; |