Skip to content

Commit

Permalink
we love you turbo man
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMan13 committed Dec 8, 2024
1 parent 2586200 commit c529c8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ class VirtualMachine extends EventEmitter {
return resolve([json, sb1.zip]);
}

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

0 comments on commit c529c8a

Please sign in to comment.