diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/yahoo-mail/index.js | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/yahoo-mail/index.js')
-rw-r--r-- | recipes/yahoo-mail/index.js | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/recipes/yahoo-mail/index.js b/recipes/yahoo-mail/index.js index 599e93c..b52af44 100644 --- a/recipes/yahoo-mail/index.js +++ b/recipes/yahoo-mail/index.js | |||
@@ -1,15 +1,14 @@ | |||
1 | module.exports = (Franz) => | 1 | module.exports = (Franz) => class YahooMail extends Franz { |
2 | class YahooMail extends Franz { | 2 | modifyRequestHeaders() { |
3 | modifyRequestHeaders() { | 3 | return [ |
4 | return [ | 4 | { |
5 | { | 5 | headers: { |
6 | headers: { | 6 | 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', |
7 | 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', | 7 | }, |
8 | }, | 8 | requestFilters: { |
9 | requestFilters: { | 9 | urls: ['*://*/*'], |
10 | urls: ['*://*/*'], | 10 | }, |
11 | } | 11 | }, |
12 | } | 12 | ]; |
13 | ] | 13 | } |
14 | } | 14 | }; |
15 | }; | ||