From 7517a409a1a502c747eb4598492a88cec4e8d58c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 19 Sep 2021 07:26:25 +0530 Subject: fix: fix js error; styling --- recipes/clickup/webview.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'recipes/clickup/webview.js') diff --git a/recipes/clickup/webview.js b/recipes/clickup/webview.js index 420ca5a..8dc8d26 100644 --- a/recipes/clickup/webview.js +++ b/recipes/clickup/webview.js @@ -1,6 +1,5 @@ module.exports = Ferdi => { - const getMessages = function getMessages() { - const elements = document.querySelectorAll('.unreadCount'); + const getMessages = () => { const unread = document.querySelector('.cu-notification-alert__dot'); Ferdi.setBadge(unread ? 1 : 0); }; -- cgit v1.2.3-70-g09d2