diff options
author | 2021-12-01 09:46:06 +0000 | |
---|---|---|
committer | 2021-12-01 15:16:06 +0530 | |
commit | 665a4d8ec68bdf74a7348221d8fc6d5d3b00f2db (patch) | |
tree | 0e6814f24dd394d1f45884efd6c3d47a80b31815 /recipes/whatsapp/webview.js | |
parent | Fixed unread badge for circuit (#777) (diff) | |
download | ferdium-recipes-665a4d8ec68bdf74a7348221d8fc6d5d3b00f2db.tar.gz ferdium-recipes-665a4d8ec68bdf74a7348221d8fc6d5d3b00f2db.tar.zst ferdium-recipes-665a4d8ec68bdf74a7348221d8fc6d5d3b00f2db.zip |
Stop clearing storage data on unload in WhatsApp recipe (#778)
Diffstat (limited to 'recipes/whatsapp/webview.js')
-rw-r--r-- | recipes/whatsapp/webview.js | 11 |
1 files changed, 1 insertions, 10 deletions
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) { | |||
4 | return obj && obj.__esModule ? obj : { default: obj }; | 4 | return obj && obj.__esModule ? obj : { default: obj }; |
5 | } | 5 | } |
6 | 6 | ||
7 | module.exports = (Ferdi, settings) => { | 7 | module.exports = Ferdi => { |
8 | const getMessages = () => { | 8 | const getMessages = () => { |
9 | let count = 0; | 9 | let count = 0; |
10 | let indirectCount = 0; | 10 | let indirectCount = 0; |
@@ -48,15 +48,6 @@ module.exports = (Ferdi, settings) => { | |||
48 | }; | 48 | }; |
49 | 49 | ||
50 | window.addEventListener('beforeunload', async () => { | 50 | window.addEventListener('beforeunload', async () => { |
51 | Ferdi.clearStorageData(settings.id, { | ||
52 | storages: [ | ||
53 | 'appcache', | ||
54 | 'serviceworkers', | ||
55 | 'cachestorage', | ||
56 | 'websql', | ||
57 | 'indexdb', | ||
58 | ], | ||
59 | }); | ||
60 | Ferdi.releaseServiceWorkers(); | 51 | Ferdi.releaseServiceWorkers(); |
61 | }); | 52 | }); |
62 | 53 | ||