diff options
author | 2021-09-19 01:19:11 +0200 | |
---|---|---|
committer | 2021-09-19 01:19:11 +0200 | |
commit | 6ec6fef9017ee9d8fc436e48448d47b1fda8a820 (patch) | |
tree | 1839f85efb4e45b441e509d2fc12a28a05877e47 /recipes/googlemeet/webview.js | |
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/googlemeet/webview.js')
-rw-r--r-- | recipes/googlemeet/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index 9d334ba..ac186ab 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js | |||
@@ -10,10 +10,6 @@ window.onload = () => { | |||
10 | } | 10 | } |
11 | }; | 11 | }; |
12 | 12 | ||
13 | window.addEventListener('beforeunload', async () => { | ||
14 | Ferdi.clearStorageData(['serviceworkers']); | ||
15 | }); | ||
16 | |||
17 | module.exports = Ferdi => { | 13 | module.exports = Ferdi => { |
18 | const getMessages = function getMessages() { | 14 | const getMessages = function getMessages() { |
19 | const elements = document.querySelectorAll('.CxUIE, .unread'); | 15 | const elements = document.querySelectorAll('.CxUIE, .unread'); |
@@ -30,5 +26,9 @@ module.exports = Ferdi => { | |||
30 | 26 | ||
31 | Ferdi.loop(getMessages); | 27 | Ferdi.loop(getMessages); |
32 | 28 | ||
29 | window.addEventListener('beforeunload', async () => { | ||
30 | Ferdi.clearStorageData(['serviceworkers']); | ||
31 | }); | ||
32 | |||
33 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 33 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); |
34 | }; | 34 | }; |