From 0825a557a1f0a39e102e0a597812228cea9e4075 Mon Sep 17 00:00:00 2001 From: Elijah Bansley Date: Thu, 17 May 2018 13:29:26 -0500 Subject: [PATCH] Update main.js --- main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index ea2893d..84a9d5a 100644 --- a/main.js +++ b/main.js @@ -113,6 +113,8 @@ document.getElementById("goButton").addEventListener("click", async () => { let payload; if (payloadType === "fusee.bin") { payload = hekate5; + } else if (payloadType === "hekate4") { + payload = hekate4; } else if (payloadType === "uploaded") { const file = document.getElementById("payloadUpload").files[0]; if (!file) { @@ -136,13 +138,12 @@ document.getElementById("goButton").addEventListener("click", async () => { device = await navigator.usb.requestDevice({ filters: [{ vendorId: 0x0955 }] }); logOutput(`Preparing to launch ${payloadType}...`); - + let payload; if (payloadType === "fusee.bin") { - //payload = fusee; payload = hekate5; } else if (payloadType === "hekate4") { - payload = hekate4 + payload = hekate4; } else if (payloadType === "uploaded") { const file = document.getElementById("payloadUpload").files[0]; if (!file) {