diff options
Diffstat (limited to 'recipes/nextdoor/webview.js')
-rw-r--r-- | recipes/nextdoor/webview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/nextdoor/webview.js b/recipes/nextdoor/webview.js index 280d6a5..0ea8f57 100644 --- a/recipes/nextdoor/webview.js +++ b/recipes/nextdoor/webview.js | |||
@@ -1,12 +1,12 @@ | |||
1 | module.exports = Franz => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
3 | let unread = 0; | 3 | let unread = 0; |
4 | const notificationBadge = document.getElementsByClassName('notification-badge')[0]; | 4 | const notificationBadge = document.getElementsByClassName('notification-badge')[0]; |
5 | if (notificationBadge != undefined) { | 5 | if (notificationBadge != undefined) { |
6 | unread = notificationBadge.innerText; | 6 | unread = notificationBadge.innerText; |
7 | } | 7 | } |
8 | Franz.setBadge(parseInt(unread, 10)); | 8 | Ferdi.setBadge(parseInt(unread, 10)); |
9 | }; | 9 | }; |
10 | 10 | ||
11 | Franz.loop(getMessages); | 11 | Ferdi.loop(getMessages); |
12 | }; | 12 | }; |