diff options
author | 2020-01-14 20:47:35 +0100 | |
---|---|---|
committer | 2020-01-14 20:47:35 +0100 | |
commit | d003cb9d863070e364bf02f083ba80291ef04a4b (patch) | |
tree | cc22c82b30ed6adb3382827394267bbbb16ff979 /uncompressed/mastodon/index.js | |
parent | Add github script (diff) | |
download | ferdium-recipes-d003cb9d863070e364bf02f083ba80291ef04a4b.tar.gz ferdium-recipes-d003cb9d863070e364bf02f083ba80291ef04a4b.tar.zst ferdium-recipes-d003cb9d863070e364bf02f083ba80291ef04a4b.zip |
Add habitica and mastodon
Diffstat (limited to 'uncompressed/mastodon/index.js')
-rw-r--r-- | uncompressed/mastodon/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/uncompressed/mastodon/index.js b/uncompressed/mastodon/index.js new file mode 100644 index 0000000..561bb58 --- /dev/null +++ b/uncompressed/mastodon/index.js | |||
@@ -0,0 +1,14 @@ | |||
1 | module.exports = (Franz) => { | ||
2 | class Mastodon extends Franz { | ||
3 | validateServer(URL) { | ||
4 | const api = `${URL}`; | ||
5 | return new Promise((resolve, reject) => { | ||
6 | $.get(api, (resp) => { | ||
7 | resolve(); | ||
8 | }).fail(reject); | ||
9 | }); | ||
10 | } | ||
11 | } | ||
12 | |||
13 | return Mastodon; | ||
14 | }; | ||