diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-09-19 01:19:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 01:19:11 +0200 |
commit | 6ec6fef9017ee9d8fc436e48448d47b1fda8a820 (patch) | |
tree | 1839f85efb4e45b441e509d2fc12a28a05877e47 /recipes/whatsapp | |
parent | Fix images opening in browser instead of in Discord (#712) (diff) | |
parent | also fix privileged API access for googlemeet (diff) | |
download | ferdium-recipes-6ec6fef9017ee9d8fc436e48448d47b1fda8a820.tar.gz ferdium-recipes-6ec6fef9017ee9d8fc436e48448d47b1fda8a820.tar.zst ferdium-recipes-6ec6fef9017ee9d8fc436e48448d47b1fda8a820.zip |
Merge pull request #713 from kris7t/fix-api-access
fix: privileged API access
Diffstat (limited to 'recipes/whatsapp')
-rw-r--r-- | recipes/whatsapp/package.json | 2 | ||||
-rw-r--r-- | recipes/whatsapp/webview.js | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 4e59177..a364a1f 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.2", | 4 | "version": "3.3.3", |
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 3df34e3..fb1a20b 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -2,11 +2,6 @@ const _path = _interopRequireDefault(require('path')); | |||
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | window.addEventListener('beforeunload', async () => { | ||
6 | Ferdi.clearStorageData(['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb']); | ||
7 | Ferdi.releaseServiceWorkers(); | ||
8 | }); | ||
9 | |||
10 | module.exports = Ferdi => { | 5 | module.exports = Ferdi => { |
11 | const getMessages = function getMessages() { | 6 | const getMessages = function getMessages() { |
12 | let count = 0; | 7 | let count = 0; |
@@ -34,6 +29,11 @@ module.exports = Ferdi => { | |||
34 | Ferdi.setBadge(count, indirectCount); | 29 | Ferdi.setBadge(count, indirectCount); |
35 | }; | 30 | }; |
36 | 31 | ||
32 | window.addEventListener('beforeunload', async () => { | ||
33 | Ferdi.clearStorageData(['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb']); | ||
34 | Ferdi.releaseServiceWorkers(); | ||
35 | }); | ||
36 | |||
37 | Ferdi.loop(getMessages); | 37 | Ferdi.loop(getMessages); |
38 | 38 | ||
39 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 39 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); |