aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/whatsapp/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-09-26 11:02:57 +0530
committerLibravatar GitHub <noreply@github.com>2021-09-26 11:02:57 +0530
commit882da387029a0026e4417aae4224bcf8df3ce266 (patch)
tree6318bb2d39fb2d7caa77d8c596a910d1c4b6c6c6 /recipes/whatsapp/webview.js
parentdocs: removed incorrect docs in GH action. [skip ci] (diff)
downloadferdium-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.js4
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
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = Ferdi => { 5module.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