diff options
author | 2020-04-13 22:07:06 +0200 | |
---|---|---|
committer | 2020-04-13 22:07:06 +0200 | |
commit | a3de12e548a2c2d7387d1b7f4c5fcb3953ae2267 (patch) | |
tree | fc4c630c62ca39e9092eaf4f27718bba583a4cb7 /uncompressed/nextdoor/webview.js | |
parent | Merge pull request #95 from getferdi/feat/telegram (diff) | |
parent | Updates Nextdoor to 1.0.1: Fixes notification disappearing (diff) | |
download | ferdium-recipes-a3de12e548a2c2d7387d1b7f4c5fcb3953ae2267.tar.gz ferdium-recipes-a3de12e548a2c2d7387d1b7f4c5fcb3953ae2267.tar.zst ferdium-recipes-a3de12e548a2c2d7387d1b7f4c5fcb3953ae2267.zip |
Merge pull request #97 from JakeSteam/master
Updates Nextdoor to 1.0.1: Fixes notification disappearing
Diffstat (limited to 'uncompressed/nextdoor/webview.js')
-rw-r--r-- | uncompressed/nextdoor/webview.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/uncompressed/nextdoor/webview.js b/uncompressed/nextdoor/webview.js index c17e99d..e20c6b5 100644 --- a/uncompressed/nextdoor/webview.js +++ b/uncompressed/nextdoor/webview.js | |||
@@ -2,7 +2,11 @@ | |||
2 | 2 | ||
3 | module.exports = Franz => { | 3 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 4 | const getMessages = function getMessages() { |
5 | const unread = document.getElementsByClassName('notification-badge')[0].innerText; | 5 | var unread = 0 |
6 | const notificationBadge = document.getElementsByClassName('notification-badge')[0] | ||
7 | if (notificationBadge != undefined) { | ||
8 | unread = notificationBadge.innerText; | ||
9 | } | ||
6 | Franz.setBadge(parseInt(unread, 10)); | 10 | Franz.setBadge(parseInt(unread, 10)); |
7 | }; | 11 | }; |
8 | 12 | ||