diff options
author | 2021-09-26 11:02:57 +0530 | |
---|---|---|
committer | 2021-09-26 11:02:57 +0530 | |
commit | 882da387029a0026e4417aae4224bcf8df3ce266 (patch) | |
tree | 6318bb2d39fb2d7caa77d8c596a910d1c4b6c6c6 /recipes/googlemeet/webview.js | |
parent | docs: removed incorrect docs in GH action. [skip ci] (diff) | |
download | ferdium-recipes-882da387029a0026e4417aae4224bcf8df3ce266.tar.gz ferdium-recipes-882da387029a0026e4417aae4224bcf8df3ce266.tar.zst ferdium-recipes-882da387029a0026e4417aae4224bcf8df3ce266.zip |
refactor: add 'serviceId' when invoking 'clearStorageData' (#726)
Diffstat (limited to 'recipes/googlemeet/webview.js')
-rw-r--r-- | recipes/googlemeet/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 = () => { | |||
10 | } | 10 | } |
11 | }; | 11 | }; |
12 | 12 | ||
13 | module.exports = Ferdi => { | 13 | module.exports = (Ferdi, settings) => { |
14 | const getMessages = () => { | 14 | const getMessages = () => { |
15 | const elements = document.querySelectorAll('.CxUIE, .unread'); | 15 | const elements = document.querySelectorAll('.CxUIE, .unread'); |
16 | let count = 0; | 16 | let count = 0; |
@@ -27,7 +27,7 @@ module.exports = Ferdi => { | |||
27 | Ferdi.loop(getMessages); | 27 | Ferdi.loop(getMessages); |
28 | 28 | ||
29 | window.addEventListener('beforeunload', async () => { | 29 | window.addEventListener('beforeunload', async () => { |
30 | Ferdi.clearStorageData(['serviceworkers']); | 30 | Ferdi.clearStorageData(settings.id, { storages: ['serviceworkers'] }); |
31 | }); | 31 | }); |
32 | 32 | ||
33 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 33 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); |