From 155c4b832281348c16be1f4ef667e6e23dbf1bd8 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 27 Aug 2021 18:13:24 +0530 Subject: chore: normalized all recipes to ensure compatibility with es6 (#639) - Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm. --- recipes/chatra/webview.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'recipes/chatra/webview.js') diff --git a/recipes/chatra/webview.js b/recipes/chatra/webview.js index a8a611c..a82a78d 100644 --- a/recipes/chatra/webview.js +++ b/recipes/chatra/webview.js @@ -1,6 +1,4 @@ -const path = require('path'); - -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { // get new conversations in My Queue const myQueue = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:my"] .count').not('.count--gray').text(); @@ -8,12 +6,11 @@ module.exports = (Franz, options) => { // get all missed conversations const missed = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:missed"] .count').text(); - // set Franz badge + // set Ferdi badge // myQueue => New conversations in My Queue // missed => All missed conversations - Franz.setBadge(myQueue, missed); + Ferdi.setBadge(myQueue, missed); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -- cgit v1.2.3-70-g09d2