diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/snapdrop | |
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/snapdrop')
-rw-r--r-- | recipes/snapdrop/index.js | 29 | ||||
-rw-r--r-- | recipes/snapdrop/webview.js | 2 |
2 files changed, 14 insertions, 17 deletions
diff --git a/recipes/snapdrop/index.js b/recipes/snapdrop/index.js index a0d85b9..28dbd49 100644 --- a/recipes/snapdrop/index.js +++ b/recipes/snapdrop/index.js | |||
@@ -1,15 +1,14 @@ | |||
1 | module.exports = (Franz) => | 1 | module.exports = (Franz) => class Snapdrop extends Franz { |
2 | class Snapdrop 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 | }; | ||
diff --git a/recipes/snapdrop/webview.js b/recipes/snapdrop/webview.js index 3ad189a..2d19daa 100644 --- a/recipes/snapdrop/webview.js +++ b/recipes/snapdrop/webview.js | |||
@@ -1,3 +1 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = (Franz) => {}; | module.exports = (Franz) => {}; | |