diff options
Diffstat (limited to 'recipes/misskey/webview.js')
-rw-r--r-- | recipes/misskey/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/misskey/webview.js b/recipes/misskey/webview.js index b024ce1..c174266 100644 --- a/recipes/misskey/webview.js +++ b/recipes/misskey/webview.js | |||
@@ -1,5 +1,5 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.exports = (Ferdi) => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = () => { |
3 | // check notification badge for Ferdi badge | 3 | // check notification badge for Ferdi badge |
4 | let hasNotification = !!document.querySelector('#app div.notifications > button > i.circle'); | 4 | let hasNotification = !!document.querySelector('#app div.notifications > button > i.circle'); |
5 | Ferdi.setBadge(0, hasNotification ? 1 : 0); | 5 | Ferdi.setBadge(0, hasNotification ? 1 : 0); |