Pretty print the saved json file.

This commit is contained in:
Nils Norman Haukås 2016-03-19 08:30:29 +01:00
parent 5bd4b2e2c6
commit c89b4be860

View file

@ -15,7 +15,7 @@ module tagIt {
}
saveFile(content: ISenseTag[]) {
var json = JSON.stringify(content);
var json = JSON.stringify(content, null, 2);
var blob = new Blob([json], { type: "application/json" });
var url = URL.createObjectURL(blob);
var a = <any> document.createElement('a');