mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 03:28:48 +02:00
Update collectHifiStats.js
Clears the current batch after we send it to the endpoint.
This commit is contained in:
parent
a820682816
commit
b254353b38
1 changed files with 2 additions and 1 deletions
|
@ -90,4 +90,5 @@ function sendBatchToEndpoint(batch) {
|
||||||
var req = new XMLHttpRequest();
|
var req = new XMLHttpRequest();
|
||||||
req.open("POST", ENDPOINT_URL, false);
|
req.open("POST", ENDPOINT_URL, false);
|
||||||
req.send(JSON.stringify(batch));
|
req.send(JSON.stringify(batch));
|
||||||
}
|
batch = [];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue