aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mastodon/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/mastodon/index.js
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-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/mastodon/index.js')
-rw-r--r--recipes/mastodon/index.js20
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 @@
1module.exports = (Franz) => { 1module.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};