prettier discovery debug output

Change-Id: I6a3a8e9370526dc0fd550d09a737844c7f32f767
This commit is contained in:
Brad Fitzpatrick 2011-06-19 13:36:40 -07:00
parent c32fec03e1
commit ec817d3c0f
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ function discover() {
return;
}
disco = JSON.parse(xhr.responseText);
document.getElementById("discores").innerHTML = JSON.stringify(disco);
document.getElementById("discores").innerHTML = "<pre>" + JSON.stringify(disco, null, 2) + "</pre>";
};
xhr.open("GET", "./?camli.mode=config", true);
xhr.send();

View File

@ -9,7 +9,7 @@ function discoverJsonSign() {
return;
}
sigdisco = JSON.parse(xhr.responseText);
document.getElementById("sigdiscores").innerHTML = JSON.stringify(sigdisco);
document.getElementById("sigdiscores").innerHTML = "<pre>" + JSON.stringify(sigdisco, null, 2) + "</pre>";
};
xhr.open("GET", disco.jsonSignRoot + "/camli/sig/discovery", true);
xhr.send();