mirror of
https://github.com/lordfriky/web-cfw-loader.git
synced 2025-05-03 10:52:26 +00:00
Update main.js
This commit is contained in:
parent
c0dcf4a0ac
commit
188bfa11e4
9
main.js
9
main.js
@ -106,11 +106,14 @@ async function launchPayload(payload) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("goButton").addEventListener("click", async () => {
|
document.getElementById("goButton").addEventListener("click", async () => {
|
||||||
|
const shouldDebug = document.forms.mainForm.debug.value;
|
||||||
|
if(shouldDebug == "shouldDebug") {
|
||||||
|
logOutput(payload);
|
||||||
|
}
|
||||||
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 }] });
|
||||||
|
|
||||||
const payloadType = document.forms.mainForm.payload.value;
|
const payloadType = document.forms.mainForm.payload.value;
|
||||||
const shouldDebug = document.forms.mainForm.debug.value;
|
|
||||||
logOutput(`Preparing to launch ${payloadType}...`);
|
logOutput(`Preparing to launch ${payloadType}...`);
|
||||||
|
|
||||||
let payload;
|
let payload;
|
||||||
@ -128,10 +131,6 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(shouldDebug == "shouldDebug") {
|
|
||||||
logOutput(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
launchPayload(payload);
|
launchPayload(payload);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user