aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/snapdrop/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/snapdrop/index.js')
-rw-r--r--recipes/snapdrop/index.js30
1 files changed, 16 insertions, 14 deletions
diff --git a/recipes/snapdrop/index.js b/recipes/snapdrop/index.js
index f0797ea..4e126b1 100644
--- a/recipes/snapdrop/index.js
+++ b/recipes/snapdrop/index.js
@@ -1,15 +1,17 @@
1module.exports = (Ferdium) => class Snapdrop extends Ferdium { 1module.exports = Ferdium =>
2 modifyRequestHeaders() { 2 class Snapdrop extends Ferdium {
3 return [ 3 modifyRequestHeaders() {
4 { 4 return [
5 headers: { 5 {
6 // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdium 6 headers: {
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 // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdium
8 'user-agent':
9 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36',
10 },
11 requestFilters: {
12 urls: ['*://*/*'],
13 },
8 }, 14 },
9 requestFilters: { 15 ];
10 urls: ['*://*/*'], 16 }
11 }, 17 };
12 },
13 ];
14 }
15};