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/github/webview.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'recipes/github/webview.js') diff --git a/recipes/github/webview.js b/recipes/github/webview.js index 3b5a286..9f35b5e 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directCountElement = document.querySelector('.filter-list .count'); const indirectCountElement = document.querySelector('[class*="mail-status unread"]'); @@ -9,9 +9,8 @@ module.exports = Franz => { } else if (indirectCountElement) { indirectCount = 1; } - Franz.setBadge(directCount, indirectCount); + Ferdi.setBadge(directCount, indirectCount); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnaXRodWIvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= -- cgit v1.2.3-54-g00ecf