Merge API branch into main #12

Merged
SemvdH merged 334 commits from api into main 2023-06-13 19:54:43 +00:00
Showing only changes of commit 02f278e61c - Show all commits

View File

@@ -145,6 +145,7 @@
}
function connect() {
var received = false;
var xhr = new XMLHttpRequest();
xhr.open("GET", "/connect", true);
xhr.onreadystatechange = function () {
@@ -162,7 +163,12 @@
// console.log(status)
document.getElementById("connectedstatus").innerHTML = "Connected: " + status.connected;
}
alert("Could not connect to API!");
if (!received)
{
alert("Could not connect to API!");
received = true;
}
}
};
xhr.send();