From d2167a4e3471fece7b8a706d87ae3cfac719db4d Mon Sep 17 00:00:00 2001 From: Elijah Bansley Date: Thu, 17 May 2018 08:39:09 -0500 Subject: [PATCH] Update main.js --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 3e25928..36827f8 100644 --- a/main.js +++ b/main.js @@ -111,6 +111,7 @@ document.getElementById("goButton").addEventListener("click", async () => { if(debugCheckbox.checked) { if (payloadType === "uploaded") { const file = document.getElementById("payloadUpload").files[0]; + file = new Uint8Array(await readFileAsArrayBuffer(file)); } else if (payloadType === "fusee.bin") { const file = fusee; }