Update main.js

This commit is contained in:
Elijah Bansley 2018-05-18 00:35:44 -05:00 committed by GitHub
parent 37fbe740e0
commit 95d6e51abd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
logOutput("Requesting access to device..."); logOutput("Requesting access to device...");
device = await navigator.usb.requestDevice({ filters: [{ vendorId: 0x0955 }] }); device = await navigator.usb.requestDevice({ filters: [{ vendorId: 0x0955 }] });
logOutput(`Preparing to launch ${payloadType}...`); logOutput(`<p style='color:blue'>Preparing to launch ${payloadType}...</p>`);
let payload; let payload;
if (payloadType === "hekate v5") { if (payloadType === "hekate v5") {
@ -161,7 +161,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
} }
payload = new Uint8Array(await readFileAsArrayBuffer(file)); payload = new Uint8Array(await readFileAsArrayBuffer(file));
} else { } else {
logOutput("You're trying to load a payload type that doesn't exist."); logOutput("<p style='color:red'>You're trying to load a payload type that doesn't exist.</p>");
return; return;
} }