aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/whatsapp
diff options
context:
space:
mode:
authorLibravatar Rui Gonçalves <ruippeixotog@gmail.com>2021-12-01 09:46:06 +0000
committerLibravatar GitHub <noreply@github.com>2021-12-01 15:16:06 +0530
commit665a4d8ec68bdf74a7348221d8fc6d5d3b00f2db (patch)
tree0e6814f24dd394d1f45884efd6c3d47a80b31815 /recipes/whatsapp
parentFixed unread badge for circuit (#777) (diff)
downloadferdium-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')
-rw-r--r--recipes/whatsapp/package.json2
-rw-r--r--recipes/whatsapp/webview.js11
2 files changed, 2 insertions, 11 deletions
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 @@
1{ 1{
2 "id": "whatsapp", 2 "id": "whatsapp",
3 "name": "WhatsApp", 3 "name": "WhatsApp",
4 "version": "3.3.6", 4 "version": "3.3.7",
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 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
7module.exports = (Ferdi, settings) => { 7module.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