Pretty Print

This commit is contained in:
TheBrokenRail 2016-12-02 15:41:55 -05:00 committed by GitHub
parent a520990a80
commit 424b41ac31

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) {