mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Update src/virtual-machine.js
Co-Authored-By: mzgoddard <mzgoddard@gmail.com>
This commit is contained in:
parent
5593b28984
commit
f1a24e3296
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ class VirtualMachine extends EventEmitter {
|
|||
const sb1 = new SB1File(input);
|
||||
const json = sb1.json;
|
||||
json.projectVersion = 2;
|
||||
return [json, sb1.zip];
|
||||
return Promise.resolve([json, sb1.zip]);
|
||||
} catch (sb1Error) {
|
||||
if (sb1Error instanceof ValidationError) {
|
||||
// The input does not validate as a Scratch 1 file.
|
||||
|
|
Loading…
Reference in a new issue