From d7fbca2c66f71affbb3e2d2b44448074ce977adf Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 19 Sep 2021 01:16:36 +0200 Subject: also fix privileged API access for googlemeet --- recipes/googlemeet/package.json | 2 +- recipes/googlemeet/webview.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/googlemeet') diff --git a/recipes/googlemeet/package.json b/recipes/googlemeet/package.json index 55cc0b8..731de9d 100644 --- a/recipes/googlemeet/package.json +++ b/recipes/googlemeet/package.json @@ -1,7 +1,7 @@ { "id": "googlemeet", "name": "Google Meet", - "version": "2.2.1", + "version": "2.2.2", "license": "MIT", "config": { "serviceURL": "https://meet.google.com", diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index 9d334ba..ac186ab 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js @@ -10,10 +10,6 @@ window.onload = () => { } }; -window.addEventListener('beforeunload', async () => { - Ferdi.clearStorageData(['serviceworkers']); -}); - module.exports = Ferdi => { const getMessages = function getMessages() { const elements = document.querySelectorAll('.CxUIE, .unread'); @@ -30,5 +26,9 @@ module.exports = Ferdi => { Ferdi.loop(getMessages); + window.addEventListener('beforeunload', async () => { + Ferdi.clearStorageData(['serviceworkers']); + }); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-70-g09d2