Added a print queue and rate limiting for the API
This commit is contained in:
@@ -8,6 +8,10 @@ async function print() {
|
||||
}
|
||||
|
||||
let http = new XMLHttpRequest();
|
||||
http.onreadystatechange = function() {
|
||||
let response = this.responseText;
|
||||
document.getElementById('response').innerHTML = 'Server responded with: ' + response;
|
||||
}
|
||||
|
||||
let string = '/print?name=' + name + '&coords=' + coords;
|
||||
await http.open('GET', string, true);
|
||||
|
||||
Reference in New Issue
Block a user