Skip to content

Commit

Permalink
killed
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMan13 committed Dec 6, 2024
1 parent eb1e9b6 commit c79ca4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ class VirtualMachine extends EventEmitter {
return resolve([JSON.parse(input), null]);
}
const zip = await JSZip.loadAsync(input);
const json = JSON.parse(await zip.file('project.json').async('string'));
const proj = await zip.file('project.json');
if (!proj) return reject('No project.json file!!!!!!!!!!!');
const json = JSON.parse(proj.async('string'));
json.projectVersion = !json.meta ? 2 : 3;
return resolve([json, zip]);
} catch (err) {
Expand Down

0 comments on commit c79ca4a

Please sign in to comment.