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/gmail/webview.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'recipes/gmail/webview.js') diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index a26c7cb..9a09c87 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { // if the user is on gmail's landing page, go to the login page. if (location.hostname == 'www.google.com' && location.href.includes('gmail/about/')) { location.href = 'https://accounts.google.com/AccountChooser?service=mail&continue=https://mail.google.com/mail/'; @@ -18,11 +20,11 @@ module.exports = (Franz) => { } } - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-70-g09d2