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/googlemeet/webview.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'recipes/googlemeet/webview.js') diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index eb6f7f3..3a20b0c 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js @@ -1,13 +1,11 @@ -const { - remote, -} = require('electron'); +const _path = _interopRequireDefault(require('path')); -const path = require('path'); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const { remote } = require('electron'); const webContents = remote.getCurrentWebContents(); -const { - session, -} = webContents; +const { session } = webContents; window.onload = () => { const title = document.querySelector('.window-title').innerHTML; @@ -17,7 +15,7 @@ window.onload = () => { } }; -module.exports = Franz => { +module.exports = Ferdi => { session.flushStorageData(); session.clearStorageData({ storages: ['serviceworkers'], @@ -33,9 +31,10 @@ module.exports = Franz => { } } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-70-g09d2