diff options
author | 2020-05-25 15:37:51 +0530 | |
---|---|---|
committer | 2020-05-27 13:11:44 +0530 | |
commit | b3769f642d978ecb3305eb3c94d67100203d9539 (patch) | |
tree | 788192fd4a20ca227718fa6b4089103ded152835 | |
parent | Update Skype with screen sharing (#170) (diff) | |
download | ferdium-recipes-b3769f642d978ecb3305eb3c94d67100203d9539.tar.gz ferdium-recipes-b3769f642d978ecb3305eb3c94d67100203d9539.tar.zst ferdium-recipes-b3769f642d978ecb3305eb3c94d67100203d9539.zip |
fix: Google meet is unusable - Errors out when trying to connect to a audio/video call
- Strip off any Ferdi/Electron text from user-agent using modifyRequestHeaders hook
- Resize icon to 1024x1024px as npm package was complaining
- Bump version number to 1.0.3
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | archives/googlemeet.tar.gz | bin | 93911 -> 158928 bytes | |||
-rw-r--r-- | uncompressed/googlemeet/icon.png | bin | 94137 -> 158454 bytes | |||
-rw-r--r-- | uncompressed/googlemeet/index.js | 16 | ||||
-rw-r--r-- | uncompressed/googlemeet/package.json | 2 |
5 files changed, 13 insertions, 7 deletions
@@ -301,7 +301,7 @@ | |||
301 | "featured": false, | 301 | "featured": false, |
302 | "id": "googlemeet", | 302 | "id": "googlemeet", |
303 | "name": "Google Meet", | 303 | "name": "Google Meet", |
304 | "version": "1.0.2", | 304 | "version": "1.0.3", |
305 | "icons": { | 305 | "icons": { |
306 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.png", | 306 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.png", |
307 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.svg" | 307 | "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..ccef774 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..df2b452 100644 --- a/uncompressed/googlemeet/index.js +++ b/uncompressed/googlemeet/index.js | |||
@@ -2,10 +2,16 @@ var os = require('os') | |||
2 | 2 | ||
3 | module.exports = Franz => | 3 | module.exports = Franz => |
4 | class Gmail extends Franz { | 4 | class Gmail 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..bce16b4 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.3", |
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>", |