diff options
author | 2021-05-14 16:45:19 +0530 | |
---|---|---|
committer | 2021-05-14 16:49:26 +0530 | |
commit | 846157ea2b94c9ef82bcd2bd088118036257ea0d (patch) | |
tree | 614c108aa5bb237ca8bee420c0e2a2559f126a8d /recipes/googlekeep/index.js | |
parent | Fixing svg icon for gmail (diff) | |
download | ferdium-recipes-846157ea2b94c9ef82bcd2bd088118036257ea0d.tar.gz ferdium-recipes-846157ea2b94c9ef82bcd2bd088118036257ea0d.tar.zst ferdium-recipes-846157ea2b94c9ef82bcd2bd088118036257ea0d.zip |
Fixing issue with non-sso login for all google services not working due to incompatible user-agent/browser version
Diffstat (limited to 'recipes/googlekeep/index.js')
-rw-r--r-- | recipes/googlekeep/index.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/recipes/googlekeep/index.js b/recipes/googlekeep/index.js index 96e3615..fb830e3 100644 --- a/recipes/googlekeep/index.js +++ b/recipes/googlekeep/index.js | |||
@@ -1,11 +1,3 @@ | |||
1 | var os = require('os') | ||
2 | |||
3 | module.exports = Franz => | 1 | module.exports = Franz => |
4 | class googlekeep extends Franz { | 2 | class GoogleKeep extends Franz { |
5 | overrideUserAgent() { | ||
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"; | ||
10 | } | ||
11 | }; | 3 | }; |