1 2 3 4 5 6 7 8 9 10 11 12 13 14
module.exports = Ferdi => { class Mastodon extends Ferdi { validateServer(URL) { const api = `${URL}`; return new Promise((resolve, reject) => { $.get(api, () => { resolve(); }).fail(reject); }); } } return Mastodon; };