diff options
author | 2021-09-19 01:19:11 +0200 | |
---|---|---|
committer | 2021-09-19 01:19:11 +0200 | |
commit | 6ec6fef9017ee9d8fc436e48448d47b1fda8a820 (patch) | |
tree | 1839f85efb4e45b441e509d2fc12a28a05877e47 /recipes/msteams | |
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/msteams')
-rw-r--r-- | recipes/msteams/package.json | 2 | ||||
-rw-r--r-- | recipes/msteams/webview.js | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/recipes/msteams/package.json b/recipes/msteams/package.json index 10fb69b..17c0aa0 100644 --- a/recipes/msteams/package.json +++ b/recipes/msteams/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "msteams", | 2 | "id": "msteams", |
3 | "name": "Microsoft Teams", | 3 | "name": "Microsoft Teams", |
4 | "version": "3.1.4", | 4 | "version": "3.1.5", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "aliases": [ | 6 | "aliases": [ |
7 | "teamsChat" | 7 | "teamsChat" |
diff --git a/recipes/msteams/webview.js b/recipes/msteams/webview.js index 786cd9b..94f3ae8 100644 --- a/recipes/msteams/webview.js +++ b/recipes/msteams/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 = () => { | 6 | const getMessages = () => { |
12 | let messages = 0; | 7 | let messages = 0; |
@@ -20,6 +15,11 @@ module.exports = Ferdi => { | |||
20 | Ferdi.setBadge(messages, indirectMessages); | 15 | Ferdi.setBadge(messages, indirectMessages); |
21 | }; | 16 | }; |
22 | 17 | ||
18 | window.addEventListener('beforeunload', async () => { | ||
19 | Ferdi.clearStorageData(['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb']); | ||
20 | Ferdi.releaseServiceWorkers(); | ||
21 | }); | ||
22 | |||
23 | Ferdi.loop(getMessages); | 23 | Ferdi.loop(getMessages); |
24 | 24 | ||
25 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 25 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); |