mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
Parse the response text.
This commit is contained in:
parent
bfffe03d81
commit
83e228f1aa
@ -9,7 +9,7 @@
|
||||
request.open('GET', '' + path, true);
|
||||
request.onreadystatechange = function () {
|
||||
if (request.readyState == 4 && (request.status == "200" || request.status == 0)) {
|
||||
callback(request.responseText);
|
||||
callback(JSON.parse(request.responseText));
|
||||
}
|
||||
};
|
||||
request.send(null);
|
||||
|
Loading…
Reference in New Issue
Block a user