diff options
author | 2020-08-26 04:54:07 +0000 | |
---|---|---|
committer | 2020-08-26 04:54:07 +0000 | |
commit | f7f974af29883c60218f285e7e890b47ea9d1850 (patch) | |
tree | 6d72f619e5a4d12c33f3c3986aa11904144db851 | |
parent | Merge pull request #237 from mvdgun/patch-1 (diff) | |
parent | refactor: update class name from Gmail to GoogleMeet (diff) | |
download | ferdium-recipes-f7f974af29883c60218f285e7e890b47ea9d1850.tar.gz ferdium-recipes-f7f974af29883c60218f285e7e890b47ea9d1850.tar.zst ferdium-recipes-f7f974af29883c60218f285e7e890b47ea9d1850.zip |
Merge pull request #186 from Room4O4/fix/meet_connection
Fix connection error in case of audio/video call in Google Meet
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | archives/googlemeet.tar.gz | bin | 93911 -> 158942 bytes | |||
-rw-r--r-- | uncompressed/googlemeet/icon.png | bin | 94137 -> 158454 bytes | |||
-rw-r--r-- | uncompressed/googlemeet/index.js | 18 | ||||
-rw-r--r-- | uncompressed/googlemeet/package.json | 2 |
5 files changed, 14 insertions, 8 deletions
@@ -367,7 +367,7 @@ | |||
367 | "featured": false, | 367 | "featured": false, |
368 | "id": "googlemeet", | 368 | "id": "googlemeet", |
369 | "name": "Google Meet", | 369 | "name": "Google Meet", |
370 | "version": "1.0.2", | 370 | "version": "1.0.4", |
371 | "icons": { | 371 | "icons": { |
372 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.png", | 372 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.png", |
373 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.svg" | 373 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.svg" |
diff --git a/archives/googlemeet.tar.gz b/archives/googlemeet.tar.gz index dac4bbe..c901b72 100644 --- a/archives/googlemeet.tar.gz +++ b/archives/googlemeet.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/googlemeet/icon.png b/uncompressed/googlemeet/icon.png index 12a85fa..a259b80 100644 --- a/uncompressed/googlemeet/icon.png +++ b/uncompressed/googlemeet/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/googlemeet/index.js b/uncompressed/googlemeet/index.js index 4087aa3..9d84c17 100644 --- a/uncompressed/googlemeet/index.js +++ b/uncompressed/googlemeet/index.js | |||
@@ -1,11 +1,17 @@ | |||
1 | var os = require('os') | 1 | var os = require('os') |
2 | 2 | ||
3 | module.exports = Franz => | 3 | module.exports = Franz => |
4 | class Gmail extends Franz { | 4 | class GoogleMeet extends Franz { |
5 | overrideUserAgent() { | 5 | modifyRequestHeaders() { |
6 | if (os.platform() == 'linux') | 6 | return [ |
7 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | 7 | { |
8 | else | 8 | headers: { |
9 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | 9 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), |
10 | }, | ||
11 | requestFilters: { | ||
12 | urls: ['*://*/*'], | ||
13 | }, | ||
14 | }, | ||
15 | ]; | ||
10 | } | 16 | } |
11 | }; | 17 | }; |
diff --git a/uncompressed/googlemeet/package.json b/uncompressed/googlemeet/package.json index 5428747..651b035 100644 --- a/uncompressed/googlemeet/package.json +++ b/uncompressed/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": "1.0.2", | 4 | "version": "1.0.4", |
5 | "description": "Google Meet", | 5 | "description": "Google Meet", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Patrick Thoelken <patrick.thoelken@outlook.com>", | 7 | "author": "Patrick Thoelken <patrick.thoelken@outlook.com>", |