Update main.js

This commit is contained in:
Elijah Bansley 2018-05-17 08:33:47 -05:00 committed by GitHub
parent e80deb6f8d
commit 5422b9ffae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,8 +106,8 @@ async function launchPayload(payload) {
} }
document.getElementById("goButton").addEventListener("click", async () => { document.getElementById("goButton").addEventListener("click", async () => {
const shouldDebug = document.forms.mainForm.debug.value; var debugCheckbox = document.querySelector('input[value="shouldDebug"]');
if(shouldDebug == "shouldDebug") { if(debugCheckbox.checked) {
logOutput(payload); logOutput(payload);
} }
logOutput("Requesting access to device..."); logOutput("Requesting access to device...");