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/zeplin/index.js | 2 +- recipes/zeplin/package.json | 2 +- recipes/zeplin/webview.js | 12 +++--------- 3 files changed, 5 insertions(+), 11 deletions(-) (limited to 'recipes/zeplin') diff --git a/recipes/zeplin/index.js b/recipes/zeplin/index.js index 258da41..23607bd 100644 --- a/recipes/zeplin/index.js +++ b/recipes/zeplin/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/zeplin/package.json b/recipes/zeplin/package.json index a6b2a05..bddbc57 100644 --- a/recipes/zeplin/package.json +++ b/recipes/zeplin/package.json @@ -1,7 +1,7 @@ { "id": "zeplin", "name": "Zeplin", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.zeplin.io/login" diff --git a/recipes/zeplin/webview.js b/recipes/zeplin/webview.js index 00030b0..445eebe 100644 --- a/recipes/zeplin/webview.js +++ b/recipes/zeplin/webview.js @@ -1,15 +1,9 @@ -const path = require('path'); - -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { const totalNotifications = document.querySelectorAll('#notificationList > .notification').length; const hasUnread = document.querySelectorAll('#notificationsButton.hasUnread').length > 0; - - // set Franz badge - if (hasUnread) { - Franz.setBadge(totalNotifications); - } + Ferdi.setBadge(hasUnread ? totalNotifications : 0); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf