Meshroom/meshroom/ui/qml/Utils/request.js
Yann Lanthony 3438900b2b [ui] add "About" dialog
Accessible from main menu Help > About Meshroom, or by pressing "F1". Provides info about Meshroom version + useful links and related Open Source Licenses.

* load COPYING.md from Meshroom/AliceVision files (either provided with the standalone package or online) + translate them to HTML for display  (added `markdown` package in requirements)
* request.js: centralize function to open file urls
* provide system info from MeshroomApp (exposed as contextProperty)
2018-08-03 17:24:04 +02:00

11 lines
297 B
JavaScript

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