mirror of
https://github.com/lordfriky/web-cfw-loader.git
synced 2025-02-05 19:31:31 +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");
|
var debugCheckbox = document.getElementById("shouldDebug");
|
||||||
const payloadType = document.forms.mainForm.payload.value;
|
const payloadType = document.forms.mainForm.payload.value;
|
||||||
if(debugCheckbox.checked) {
|
if(debugCheckbox.checked) {
|
||||||
logOutput("Debugging...");
|
logOutput("Logging payload bytes...");
|
||||||
let payload;
|
let payload;
|
||||||
if (payloadType === "fusee.bin") {
|
if (payloadType === "fusee.bin") {
|
||||||
payload = fusee;
|
payload = fusee;
|
||||||
@ -125,6 +125,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
logOutput(payload);
|
logOutput(payload);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
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 }] });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user