1
0
mirror of https://github.com/lordfriky/web-cfw-loader.git synced 2025-07-08 11:12:28 +00:00

Update main.js

This commit is contained in:
Elijah Bansley 2018-06-24 08:45:33 -05:00 committed by GitHub
parent 94af1940f4
commit fabc75d9eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -132,6 +132,8 @@ document.getElementById("goButton").addEventListener("click", async () => {
clearLog(); clearLog();
var debugCheckbox = document.getElementById("shouldDebug"); var debugCheckbox = document.getElementById("shouldDebug");
const payloadType = document.getElementById("payloadSelect").value; const payloadType = document.getElementById("payloadSelect").value;
if(!debugCheckbox.checked) {
logOutput("Requesting access to device..."); logOutput("Requesting access to device...");
try { try {
@ -141,6 +143,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
logOutput("Failed to get a device. Did you chose one?"); logOutput("Failed to get a device. Did you chose one?");
return; return;
} }
}
let payload; let payload;
if (payloadType === "hekate v5") { if (payloadType === "hekate v5") {