diff options
author | 2021-05-11 22:40:43 +0530 | |
---|---|---|
committer | 2021-05-11 17:10:43 +0000 | |
commit | 1cbed113537eef0cffe36a72cb2d315adf7348a7 (patch) | |
tree | b0be3e8b00bef8ecd8506dfe5c4f4bb2463e9a43 /recipes/gmail/index.js | |
parent | Upgraded nodejs to '14.16.1' (#482) (diff) | |
download | ferdium-recipes-1cbed113537eef0cffe36a72cb2d315adf7348a7.tar.gz ferdium-recipes-1cbed113537eef0cffe36a72cb2d315adf7348a7.tar.zst ferdium-recipes-1cbed113537eef0cffe36a72cb2d315adf7348a7.zip |
Fixing issue with non-sso login for gmail + gdrive not working due to incompatible user-agent/browser version (#477)
Diffstat (limited to 'recipes/gmail/index.js')
-rw-r--r-- | recipes/gmail/index.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/recipes/gmail/index.js b/recipes/gmail/index.js index 60f0971..309bb87 100644 --- a/recipes/gmail/index.js +++ b/recipes/gmail/index.js | |||
@@ -2,16 +2,4 @@ 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 | modifyRequestHeaders() { | ||
6 | return [ | ||
7 | { | ||
8 | headers: { | ||
9 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g,"").trim(), | ||
10 | }, | ||
11 | requestFilters: { | ||
12 | urls: ['*://*/*'], | ||
13 | } | ||
14 | } | ||
15 | ] | ||
16 | } | ||
17 | }; | 5 | }; |