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/package.json | 2 +- recipes/clickup/webview.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'recipes/clickup') diff --git a/recipes/clickup/package.json b/recipes/clickup/package.json index cebcd93..4a33492 100644 --- a/recipes/clickup/package.json +++ b/recipes/clickup/package.json @@ -1,7 +1,7 @@ { "id": "clickup", "name": "ClickUp", - "version": "2.2.0", + "version": "2.2.1", "license": "MIT", "config": { "serviceURL": "https://app.clickup.com", 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