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/zalo/package.json | 2 +- recipes/zalo/webview.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'recipes/zalo') diff --git a/recipes/zalo/package.json b/recipes/zalo/package.json index ddbbbcd..5b96163 100644 --- a/recipes/zalo/package.json +++ b/recipes/zalo/package.json @@ -1,7 +1,7 @@ { "id": "zalo", "name": "Zalo", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "config": { "serviceURL": "https://chat.zalo.me/", diff --git a/recipes/zalo/webview.js b/recipes/zalo/webview.js index 2966ca1..a79e29b 100644 --- a/recipes/zalo/webview.js +++ b/recipes/zalo/webview.js @@ -1,6 +1,5 @@ module.exports = Ferdi => { - const getMessages = function getMessages() { - const unread = 0; + const getMessages = () => { const notificationBadge = document.getElementsByClassName('tab-red-dot').length; Ferdi.setBadge(notificationBadge); }; -- cgit v1.2.3-70-g09d2