diff options
author | 2021-05-11 22:40:43 +0530 | |
---|---|---|
committer | 2021-05-11 17:10:43 +0000 | |
commit | 1cbed113537eef0cffe36a72cb2d315adf7348a7 (patch) | |
tree | b0be3e8b00bef8ecd8506dfe5c4f4bb2463e9a43 /recipes/googledrive/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/googledrive/index.js')
-rw-r--r-- | recipes/googledrive/index.js | 13 |
1 files changed, 0 insertions, 13 deletions
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 | }; |