diff options
author | 2021-09-26 11:02:57 +0530 | |
---|---|---|
committer | 2021-09-26 11:02:57 +0530 | |
commit | 882da387029a0026e4417aae4224bcf8df3ce266 (patch) | |
tree | 6318bb2d39fb2d7caa77d8c596a910d1c4b6c6c6 /recipes/whatsapp/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/whatsapp/webview.js')
-rw-r--r-- | recipes/whatsapp/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 293e413..dea7b6a 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); | |||
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | module.exports = Ferdi => { | 5 | module.exports = (Ferdi, settings) => { |
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | let count = 0; | 7 | let count = 0; |
8 | let indirectCount = 0; | 8 | let indirectCount = 0; |
@@ -30,7 +30,7 @@ module.exports = Ferdi => { | |||
30 | }; | 30 | }; |
31 | 31 | ||
32 | window.addEventListener('beforeunload', async () => { | 32 | window.addEventListener('beforeunload', async () => { |
33 | Ferdi.clearStorageData(['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb']); | 33 | Ferdi.clearStorageData(settings.id, { storages: ['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb'] }); |
34 | Ferdi.releaseServiceWorkers(); | 34 | Ferdi.releaseServiceWorkers(); |
35 | }); | 35 | }); |
36 | 36 | ||