Pretty print the saved json file.
This commit is contained in:
parent
5bd4b2e2c6
commit
c89b4be860
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue