Update main.js

pull/1/merge
Elijah Bansley 2018-05-17 16:30:13 -05:00 committed by GitHub
parent eaab35aa6a
commit 0e9aa20e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -115,6 +115,8 @@ document.getElementById("goButton").addEventListener("click", async () => {
payload = hekate5;
} else if (payloadType === "hekate v4") {
payload = hekate4;
} else if (payloadType === "fusee") {
payload = fusee;
} else if (payloadType === "uploaded") {
const file = document.getElementById("payloadUpload").files[0];
if (!file) {
@ -140,10 +142,12 @@ document.getElementById("goButton").addEventListener("click", async () => {
logOutput(`Preparing to launch ${payloadType}...`);
let payload;
if (payloadType === "fusee.bin") {
if (payloadType === "hekate5") {
payload = hekate5;
} else if (payloadType === "hekate4") {
payload = hekate4;
} else if (payloadType === "fusee") {
payload = fusee;
} else if (payloadType === "uploaded") {
const file = document.getElementById("payloadUpload").files[0];
if (!file) {