Skip to content

Commit

Permalink
merge-upstream: fix default project
Browse files Browse the repository at this point in the history
  • Loading branch information
someCatInTheWorld committed Dec 9, 2024
1 parent b085b05 commit 58636e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class VirtualMachine extends EventEmitter {
}

// if it isnt a zip, maby its the roject.json in ArrayBuffer form
if (tag.slice(0, 2) !== 'PK')
if ((tag.slice(0, 2) !== 'PK') && (typeof input !== 'string'))
input = [...arr].map(String.fromCharCode).join('');
if (typeof input === 'string')
input = JSON.parse(input);
Expand Down

0 comments on commit 58636e7

Please sign in to comment.