remove unessecary API call

This commit is contained in:
ItsVipra 2023-07-10 17:28:32 +02:00
parent 2bb89336d7
commit 6a75d50048

View file

@ -33,16 +33,8 @@ checkSite();
*/
async function checkSite() {
getSettings();
const requestDest = location.protocol + "//" + hostName + "/api/v1/instance";
const response = await fetch(requestDest);
if (response) {
// debug('checksite response got', {'response' : response.json()})
document.addEventListener("readystatechange", main, { once: true });
} else {
warn("Not a Mastodon instance");
}
document.addEventListener("readystatechange", main, { once: true });
}
/**