diff --git a/src/httpGet.js b/src/httpGet.js index dcc0cb8f..82a552a5 100644 --- a/src/httpGet.js +++ b/src/httpGet.js @@ -1,4 +1,4 @@ -function httpGet (url, callback) { +function httpGet (url, options, callback) { var xhr = new XMLHttpRequest() xhr.open('get', url, true) xhr.responseType = 'text' diff --git a/src/wikidata.js b/src/wikidata.js index 55c5f678..fe7da3ab 100644 --- a/src/wikidata.js +++ b/src/wikidata.js @@ -13,7 +13,7 @@ function wikidataLoad (id, callback) { } loadClash[id] = [] - httpGet('https://www.wikidata.org/wiki/Special:EntityData/' + id + '.json', function (err, result) { + httpGet('https://www.wikidata.org/wiki/Special:EntityData/' + id + '.json', {}, function (err, result) { if (err) { return callback(err, null) }