From 2484c63d77e05fff384cc08b6ea46a29a22a62ec Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 5 Oct 2021 16:46:55 +0200 Subject: chore: repo maintenance (#732) --- recipes/misskey/webview.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'recipes/misskey/webview.js') diff --git a/recipes/misskey/webview.js b/recipes/misskey/webview.js index c174266..65fa237 100644 --- a/recipes/misskey/webview.js +++ b/recipes/misskey/webview.js @@ -1,7 +1,9 @@ -module.exports = (Ferdi) => { +module.exports = Ferdi => { const getMessages = () => { // check notification badge for Ferdi badge - let hasNotification = !!document.querySelector('#app div.notifications > button > i.circle'); + let hasNotification = !!document.querySelector( + '#app div.notifications > button > i.circle', + ); Ferdi.setBadge(0, hasNotification ? 1 : 0); }; -- cgit v1.2.3-70-g09d2