diff options
Diffstat (limited to 'uncompressed/gmail/index.js')
-rw-r--r-- | uncompressed/gmail/index.js | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/uncompressed/gmail/index.js b/uncompressed/gmail/index.js index 4087aa3..60f0971 100644 --- a/uncompressed/gmail/index.js +++ b/uncompressed/gmail/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 | }; |