diff options
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 | ||