diff options
Diffstat (limited to 'uncompressed/gmail')
-rw-r--r-- | uncompressed/gmail/index.js | 7 | ||||
-rw-r--r-- | uncompressed/gmail/package.json | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/uncompressed/gmail/index.js b/uncompressed/gmail/index.js index 97c6a73..4087aa3 100644 --- a/uncompressed/gmail/index.js +++ b/uncompressed/gmail/index.js | |||
@@ -1,6 +1,11 @@ | |||
1 | var os = require('os') | ||
2 | |||
1 | module.exports = Franz => | 3 | module.exports = Franz => |
2 | class Gmail extends Franz { | 4 | class Gmail extends Franz { |
3 | overrideUserAgent() { | 5 | overrideUserAgent() { |
4 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | 6 | if (os.platform() == 'linux') |
7 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | ||
8 | else | ||
9 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | ||
5 | } | 10 | } |
6 | }; | 11 | }; |
diff --git a/uncompressed/gmail/package.json b/uncompressed/gmail/package.json index daac7a3..d7191e9 100644 --- a/uncompressed/gmail/package.json +++ b/uncompressed/gmail/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "gmail", | 2 | "id": "gmail", |
3 | "name": "Gmail", | 3 | "name": "Gmail", |
4 | "version": "1.3.0", | 4 | "version": "1.3.1", |
5 | "description": "Gmail", | 5 | "description": "Gmail", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |