mirror of
https://github.com/lordfriky/web-cfw-loader.git
synced 2025-01-27 06:51:28 +00:00
Update main.js
This commit is contained in:
parent
5e5e658bcd
commit
63df056556
3
main.js
3
main.js
@ -109,7 +109,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
||||
var debugCheckbox = document.getElementById("shouldDebug");
|
||||
const payloadType = document.forms.mainForm.payload.value;
|
||||
if(debugCheckbox.checked) {
|
||||
logOutput("Debugging...");
|
||||
logOutput("Logging payload bytes...");
|
||||
let payload;
|
||||
if (payloadType === "fusee.bin") {
|
||||
payload = fusee;
|
||||
@ -125,6 +125,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
||||
return;
|
||||
}
|
||||
logOutput(payload);
|
||||
return;
|
||||
}
|
||||
logOutput("Requesting access to device...");
|
||||
device = await navigator.usb.requestDevice({ filters: [{ vendorId: 0x0955 }] });
|
||||
|
Loading…
x
Reference in New Issue
Block a user