diff options
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 | ||