aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/whatsapp
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
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')
-rw-r--r--recipes/whatsapp/package.json2
-rw-r--r--recipes/whatsapp/webview.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json
index 4cec6a6..8f4aab7 100644
--- a/recipes/whatsapp/package.json
+++ b/recipes/whatsapp/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "whatsapp", 2 "id": "whatsapp",
3 "name": "WhatsApp", 3 "name": "WhatsApp",
4 "version": "3.3.4", 4 "version": "3.3.5",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.whatsapp.com", 7 "serviceURL": "https://web.whatsapp.com",
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