diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/whatsapp/package.json | 2 | ||||
-rw-r--r-- | recipes/whatsapp/webview.js | 11 |
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 | ||
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 | ||