From c529c8a6545a4fec2b46020bd6f0dbdcc96ac2b0 Mon Sep 17 00:00:00 2001 From: redman13 Date: Sat, 7 Dec 2024 19:08:02 -0800 Subject: [PATCH] we love you turbo man --- src/virtual-machine.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/virtual-machine.js b/src/virtual-machine.js index c8b9f3521c1..4de081f481f 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -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