mirror of https://github.com/perkeep/perkeep.git
Prettier JSON claims from web UI.
Fixes https://code.google.com/p/camlistore/issues/detail?id=162 Change-Id: I0a154c267665d189d43b0742047a8229bf627e65
This commit is contained in:
parent
1e0b16cccf
commit
909d310e2f
|
@ -342,7 +342,14 @@ function(clearObj, success, opt_fail) {
|
|||
}
|
||||
|
||||
clearObj.camliSigner = sigConf.publicKeyBlobRef;
|
||||
clearText = JSON.stringify(clearObj);
|
||||
var camVersion = clearObj.camliVersion;
|
||||
if (camVersion) {
|
||||
delete clearObj.camliVersion;
|
||||
}
|
||||
var clearText = JSON.stringify(clearObj, null, " ");
|
||||
if (camVersion) {
|
||||
clearText = "{\"camliVersion\":" + camVersion + ",\n" + clearText.substr("{\n".length);
|
||||
}
|
||||
|
||||
this.sendXhr_(
|
||||
sigConf.signHandler,
|
||||
|
|
Loading…
Reference in New Issue