Pretty Print

This commit is contained in:
TheBrokenRail authored and GitHub committed 2016-12-02 15:41:55 -05:00
1 parent a520990a80
commit 424b41ac31
1 file changed
+1 -1
+1 -1
View File
@@ -160,7 +160,7 @@ VirtualMachine.prototype.exportToJson = function () {
obj.sprites = this.runtime.targets;
obj.meta.name = 'WIP';
obj.meta.useragent = navigator.userAgent;
return JSON.stringify(obj);
return JSON.stringify(obj, null, 2);
};
VirtualMachine.prototype.importFromJson = function (json) {