diff options
Diffstat (limited to 'recipes/devRant/webview.js')
-rw-r--r-- | recipes/devRant/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/devRant/webview.js b/recipes/devRant/webview.js index 6a30b3a..9e8b31c 100644 --- a/recipes/devRant/webview.js +++ b/recipes/devRant/webview.js | |||
@@ -9,7 +9,7 @@ setTimeout(() => { | |||
9 | } | 9 | } |
10 | }, 1000); | 10 | }, 1000); |
11 | 11 | ||
12 | module.exports = (Ferdi) => { | 12 | module.exports = (Ferdi, settings) => { |
13 | const getMessages = () => { | 13 | const getMessages = () => { |
14 | const elements = document.querySelectorAll('.CxUIE, .unread, ._0LqQ'); | 14 | const elements = document.querySelectorAll('.CxUIE, .unread, ._0LqQ'); |
15 | let count = 0; | 15 | 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 | ||