diff --git a/bandwidth/bandwidth.js b/bandwidth/bandwidth.js index c36d2e9..c17aa76 100644 --- a/bandwidth/bandwidth.js +++ b/bandwidth/bandwidth.js @@ -1060,18 +1060,18 @@ function SI_set_precision(SI_options, prefixDef, pre2num) { function LoadCTA861(){ // read text from URL location - DEBUG('CTA Test 9'); + DEBUG('CTA Test 10'); var request = new XMLHttpRequest(); request.open('GET', 'CTA861.txt', true); request.send(null); request.onreadystatechange = function () { + DEBUG('request.status:', request.status) if (request.readyState === 4 && request.status === 200) { - var type = request.getResponseHeader('Content-Type'); - if (type.indexOf("text") !== 1) { - return request.responseText; - } + DEBUG(request.responseText); + return request.responseText; } } + DEBUG('Finished'); } diff --git a/bandwidth/index.html b/bandwidth/index.html index b808ba4..17f9a53 100644 --- a/bandwidth/index.html +++ b/bandwidth/index.html @@ -31,7 +31,7 @@