diff options
author | 2021-09-26 11:02:57 +0530 | |
---|---|---|
committer | 2021-09-26 11:02:57 +0530 | |
commit | 882da387029a0026e4417aae4224bcf8df3ce266 (patch) | |
tree | 6318bb2d39fb2d7caa77d8c596a910d1c4b6c6c6 /recipes/devRant/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/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 | ||