mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 23:30:09 -05:00
Update index.js
This commit is contained in:
parent
424b41ac31
commit
34d2676db3
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ VirtualMachine.prototype.loadProject = function (json) {
|
||||||
VirtualMachine.prototype.exportToJson = function () {
|
VirtualMachine.prototype.exportToJson = function () {
|
||||||
var obj = new Object();
|
var obj = new Object();
|
||||||
obj.sprites = this.runtime.targets;
|
obj.sprites = this.runtime.targets;
|
||||||
|
obj.meta = new Object();
|
||||||
obj.meta.name = 'WIP';
|
obj.meta.name = 'WIP';
|
||||||
obj.meta.useragent = navigator.userAgent;
|
obj.meta.useragent = navigator.userAgent;
|
||||||
return JSON.stringify(obj, null, 2);
|
return JSON.stringify(obj, null, 2);
|
||||||
|
|
Loading…
Reference in a new issue