Attempt to use new Travis API.

This commit is contained in:
Georges Dupéron 2016-08-23 14:10:21 +02:00
parent 9c037eaf2d
commit 156ea6130b

View File

@ -139,7 +139,7 @@ function getBuildDate(build) {
}
function getJSON(url, callback) {
return d3.request(url)
return d3.xhr(url)
.mimeType("application/json")
.header("Accept", "application/vnd.travis-ci.2+json")
.response(function(xhr) { return JSON.parse(xhr.responseText); })