1
1
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:
Rob Rix 2015-10-09 13:36:18 -05:00
parent bfffe03d81
commit 83e228f1aa

View File

@ -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);