From 665a4d8ec68bdf74a7348221d8fc6d5d3b00f2db Mon Sep 17 00:00:00 2001 From: Rui Gonçalves Date: Wed, 1 Dec 2021 09:46:06 +0000 Subject: Stop clearing storage data on unload in WhatsApp recipe (#778) --- recipes/whatsapp/package.json | 2 +- recipes/whatsapp/webview.js | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'recipes/whatsapp') diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 208a3a8..d93eb3e 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.3.6", + "version": "3.3.7", "license": "MIT", "config": { "serviceURL": "https://web.whatsapp.com", diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 1c11edc..b753ad9 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js @@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = (Ferdi, settings) => { +module.exports = Ferdi => { const getMessages = () => { let count = 0; let indirectCount = 0; @@ -48,15 +48,6 @@ module.exports = (Ferdi, settings) => { }; window.addEventListener('beforeunload', async () => { - Ferdi.clearStorageData(settings.id, { - storages: [ - 'appcache', - 'serviceworkers', - 'cachestorage', - 'websql', - 'indexdb', - ], - }); Ferdi.releaseServiceWorkers(); }); -- cgit v1.2.3-54-g00ecf