diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-05-11 22:40:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 17:10:43 +0000 |
commit | 1cbed113537eef0cffe36a72cb2d315adf7348a7 (patch) | |
tree | b0be3e8b00bef8ecd8506dfe5c4f4bb2463e9a43 | |
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)
-rw-r--r-- | recipes/gmail/index.js | 12 | ||||
-rw-r--r-- | recipes/googledrive/index.js | 13 |
2 files changed, 0 insertions, 25 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 | }; |
diff --git a/recipes/googledrive/index.js b/recipes/googledrive/index.js index aacc1ac..13e3f92 100644 --- a/recipes/googledrive/index.js +++ b/recipes/googledrive/index.js | |||
@@ -2,17 +2,4 @@ var os = require('os') | |||
2 | 2 | ||
3 | module.exports = Franz => | 3 | module.exports = Franz => |
4 | class googledrive extends Franz { | 4 | class googledrive extends Franz { |
5 | modifyRequestHeaders() { | ||
6 | return [ | ||
7 | { | ||
8 | headers: { | ||
9 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), | ||
10 | 'origin': 'https://drive.google.com' | ||
11 | }, | ||
12 | requestFilters: { | ||
13 | urls: ['*://*/*'], | ||
14 | }, | ||
15 | }, | ||
16 | ]; | ||
17 | } | ||
18 | }; | 5 | }; |