Meshroom/meshroom/ui/qml/Utils/request.js
luz paz f4dcf6557f Fix various typos in the source code
## Description
Fix various typos in the source code. This includes user facing code, documentation, and source comments. This PR has not been tested.
Closes #1605
2022-01-22 07:39:05 -05:00

11 lines
298 B
JavaScript

.pragma library
/**
* Perform 'GET' request on url, and bind 'callback' to onreadystatechange (with XHR object as parameter).
*/
function get(url, callback) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() { callback(xhr) }
xhr.open("GET", url)
xhr.send()
}