mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-10 14:14:19 +00:00
let readyStateChange-listener run only one
This commit is contained in:
parent
e579c21337
commit
ebef128de4
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ async function checkSite() {
|
|||
if (response) {
|
||||
// debug('checksite response got', {'response' : response.json()})
|
||||
|
||||
document.addEventListener("readystatechange", main);
|
||||
document.addEventListener("readystatechange", main, { once: true });
|
||||
} else {
|
||||
warn("Not a Mastodon instance");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue