diff options
Diffstat (limited to 'recipes/mastodon/index.js')
-rw-r--r-- | recipes/mastodon/index.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/recipes/mastodon/index.js b/recipes/mastodon/index.js index 561bb58..14a7917 100644 --- a/recipes/mastodon/index.js +++ b/recipes/mastodon/index.js | |||
@@ -1,14 +1,14 @@ | |||
1 | module.exports = (Franz) => { | 1 | module.exports = (Franz) => { |
2 | class Mastodon extends Franz { | 2 | class Mastodon extends Franz { |
3 | validateServer(URL) { | 3 | validateServer(URL) { |
4 | const api = `${URL}`; | 4 | const api = `${URL}`; |
5 | return new Promise((resolve, reject) => { | 5 | return new Promise((resolve, reject) => { |
6 | $.get(api, (resp) => { | 6 | $.get(api, (resp) => { |
7 | resolve(); | 7 | resolve(); |
8 | }).fail(reject); | 8 | }).fail(reject); |
9 | }); | 9 | }); |
10 | } | ||
11 | } | 10 | } |
11 | } | ||
12 | 12 | ||
13 | return Mastodon; | 13 | return Mastodon; |
14 | }; | 14 | }; |