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/teamleader/webview.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'recipes/teamleader/webview.js') diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index 2de8e1c..3041463 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js @@ -1,13 +1,14 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = () => { const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); - - Franz.setBadge(unreadNotifications); + Ferdi.setBadge(unreadNotifications); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); - Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); + Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); }; -- cgit v1.2.3-70-g09d2