diff options
author | 2021-09-26 11:02:57 +0530 | |
---|---|---|
committer | 2021-09-26 11:02:57 +0530 | |
commit | 882da387029a0026e4417aae4224bcf8df3ce266 (patch) | |
tree | 6318bb2d39fb2d7caa77d8c596a910d1c4b6c6c6 /recipes/lastpass/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/lastpass/webview.js')
-rw-r--r-- | recipes/lastpass/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/lastpass/webview.js b/recipes/lastpass/webview.js index e50ad38..8bcf058 100644 --- a/recipes/lastpass/webview.js +++ b/recipes/lastpass/webview.js | |||
@@ -8,7 +8,7 @@ setTimeout(() => { | |||
8 | } | 8 | } |
9 | }, 1000); | 9 | }, 1000); |
10 | 10 | ||
11 | module.exports = Ferdi => { | 11 | module.exports = (Ferdi, settings) => { |
12 | const getMessages = () => { | 12 | const getMessages = () => { |
13 | const elements = document.querySelectorAll('.CxUIE, .unread'); | 13 | const elements = document.querySelectorAll('.CxUIE, .unread'); |
14 | let count = 0; | 14 | let count = 0; |
@@ -23,7 +23,7 @@ module.exports = Ferdi => { | |||
23 | }; | 23 | }; |
24 | 24 | ||
25 | window.addEventListener('beforeunload', async () => { | 25 | window.addEventListener('beforeunload', async () => { |
26 | Ferdi.clearStorageData(['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb']); | 26 | Ferdi.clearStorageData(settings.id, { storages: ['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb'] }); |
27 | Ferdi.releaseServiceWorkers(); | 27 | Ferdi.releaseServiceWorkers(); |
28 | }); | 28 | }); |
29 | 29 | ||