diff options
Diffstat (limited to 'recipes/snapdrop')
-rw-r--r-- | recipes/snapdrop/index.js | 30 | ||||
-rw-r--r-- | recipes/snapdrop/package.json | 2 | ||||
-rw-r--r-- | recipes/snapdrop/webview.js | 4 |
3 files changed, 19 insertions, 17 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 @@ | |||
1 | module.exports = (Ferdium) => class Snapdrop extends Ferdium { | 1 | module.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 | }; | ||
diff --git a/recipes/snapdrop/package.json b/recipes/snapdrop/package.json index a9c96fd..1285642 100644 --- a/recipes/snapdrop/package.json +++ b/recipes/snapdrop/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "snapdrop", | 2 | "id": "snapdrop", |
3 | "name": "Snapdrop", | 3 | "name": "Snapdrop", |
4 | "version": "1.3.0", | 4 | "version": "1.4.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "http://snapdrop.net/", | 7 | "serviceURL": "http://snapdrop.net/", |
diff --git a/recipes/snapdrop/webview.js b/recipes/snapdrop/webview.js index 86bb422..2a81dec 100644 --- a/recipes/snapdrop/webview.js +++ b/recipes/snapdrop/webview.js | |||
@@ -1,9 +1,9 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { | 1 | function _interopRequireDefault(obj) { |
4 | return obj && obj.__esModule ? obj : { default: obj }; | 2 | return obj && obj.__esModule ? obj : { default: obj }; |
5 | } | 3 | } |
6 | 4 | ||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
8 | // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges | 8 | // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges |
9 | // const getMessages = () => { | 9 | // const getMessages = () => { |