mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Update index.js
This commit is contained in:
parent
838608af86
commit
2ffb17458d
1 changed files with 3 additions and 0 deletions
|
@ -166,6 +166,9 @@ VirtualMachine.prototype.toPrettyJSON = function (testing) {
|
|||
};
|
||||
|
||||
VirtualMachine.prototype.toJSON = function () {
|
||||
if (this.runtime.targets.hasOwnProperty('testing') == false) {
|
||||
this.runtime.targets.testing = false;
|
||||
}
|
||||
var obj = new Object();
|
||||
obj.sprites = this.runtime.targets;
|
||||
obj.meta = new Object();
|
||||
|
|
Loading…
Reference in a new issue