mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-10 14:14:19 +00:00
remove unessecary API call
This commit is contained in:
parent
2bb89336d7
commit
6a75d50048
1 changed files with 1 additions and 9 deletions
|
@ -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 });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue