aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-09-19 01:16:36 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-09-19 01:16:36 +0200
commitd7fbca2c66f71affbb3e2d2b44448074ce977adf (patch)
tree1839f85efb4e45b441e509d2fc12a28a05877e47 /recipes
parentfix: privileged API access (diff)
downloadferdium-recipes-d7fbca2c66f71affbb3e2d2b44448074ce977adf.tar.gz
ferdium-recipes-d7fbca2c66f71affbb3e2d2b44448074ce977adf.tar.zst
ferdium-recipes-d7fbca2c66f71affbb3e2d2b44448074ce977adf.zip
also fix privileged API access for googlemeet
Diffstat (limited to 'recipes')
-rw-r--r--recipes/googlemeet/package.json2
-rw-r--r--recipes/googlemeet/webview.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/recipes/googlemeet/package.json b/recipes/googlemeet/package.json
index 55cc0b8..731de9d 100644
--- a/recipes/googlemeet/package.json
+++ b/recipes/googlemeet/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "googlemeet", 2 "id": "googlemeet",
3 "name": "Google Meet", 3 "name": "Google Meet",
4 "version": "2.2.1", 4 "version": "2.2.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://meet.google.com", 7 "serviceURL": "https://meet.google.com",
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
13window.addEventListener('beforeunload', async () => {
14 Ferdi.clearStorageData(['serviceworkers']);
15});
16
17module.exports = Ferdi => { 13module.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};