mirror of
https://github.com/lordfriky/web-cfw-loader.git
synced 2025-01-16 01:21:27 +00:00
Update main.js
This commit is contained in:
parent
37fbe740e0
commit
95d6e51abd
4
main.js
4
main.js
@ -144,7 +144,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
|||||||
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 }] });
|
||||||
|
|
||||||
logOutput(`Preparing to launch ${payloadType}...`);
|
logOutput(`<p style='color:blue'>Preparing to launch ${payloadType}...</p>`);
|
||||||
|
|
||||||
let payload;
|
let payload;
|
||||||
if (payloadType === "hekate v5") {
|
if (payloadType === "hekate v5") {
|
||||||
@ -161,7 +161,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
|||||||
}
|
}
|
||||||
payload = new Uint8Array(await readFileAsArrayBuffer(file));
|
payload = new Uint8Array(await readFileAsArrayBuffer(file));
|
||||||
} else {
|
} else {
|
||||||
logOutput("You're trying to load a payload type that doesn't exist.");
|
logOutput("<p style='color:red'>You're trying to load a payload type that doesn't exist.</p>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user