mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[Tests] Change desired XHR response type
Don't request json as an XHR response type, as this is not supported by Phantom for command line test execution. Part of ongoing intitial repository and build setup for WTD-519.
This commit is contained in:
parent
047d56d662
commit
680e8c8cff
@ -48,10 +48,9 @@
|
||||
function loadJSON(file, callback) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", file);
|
||||
xhr.responseType = "json";
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState === 4) { // DONE
|
||||
callback(xhr.response);
|
||||
callback(JSON.parse(xhr.response));
|
||||
}
|
||||
}
|
||||
xhr.send();
|
||||
|
Loading…
Reference in New Issue
Block a user