From 882da387029a0026e4417aae4224bcf8df3ce266 Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sun, 26 Sep 2021 11:02:57 +0530 Subject: refactor: add 'serviceId' when invoking 'clearStorageData' (#726) --- recipes/googlemeet/package.json | 2 +- recipes/googlemeet/webview.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes/googlemeet') diff --git a/recipes/googlemeet/package.json b/recipes/googlemeet/package.json index 9b16d5a..f5b1a83 100644 --- a/recipes/googlemeet/package.json +++ b/recipes/googlemeet/package.json @@ -1,7 +1,7 @@ { "id": "googlemeet", "name": "Google Meet", - "version": "2.2.3", + "version": "2.2.4", "license": "MIT", "config": { "serviceURL": "https://meet.google.com", diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index 4ccee3e..7a97505 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js @@ -10,7 +10,7 @@ window.onload = () => { } }; -module.exports = Ferdi => { +module.exports = (Ferdi, settings) => { const getMessages = () => { const elements = document.querySelectorAll('.CxUIE, .unread'); let count = 0; @@ -27,7 +27,7 @@ module.exports = Ferdi => { Ferdi.loop(getMessages); window.addEventListener('beforeunload', async () => { - Ferdi.clearStorageData(['serviceworkers']); + Ferdi.clearStorageData(settings.id, { storages: ['serviceworkers'] }); }); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); -- cgit v1.2.3-70-g09d2