Update main.js

pull/1/merge
Elijah Bansley 2018-05-17 08:39:09 -05:00 committed by GitHub
parent 71ded9b78b
commit d2167a4e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}