Only show heartbeat toast once HTTP request is complete
This commit is contained in:
@@ -86,7 +86,7 @@ function sendNodeHeartbeat(nodeId){
|
||||
Http.open("GET", url);
|
||||
Http.send();
|
||||
|
||||
Http.onreadystatechange = (e) => {
|
||||
Http.onloadend = (e) => {
|
||||
console.log(Http.responseText)
|
||||
createToast(Http.responseText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user