Added a fetch function
parent
72af5b8f11
commit
f925e1c40d
10
main.js
10
main.js
|
@ -147,7 +147,15 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
||||||
|
|
||||||
let payload;
|
let payload;
|
||||||
if (payloadType === "CTCaer_Hekate") {
|
if (payloadType === "CTCaer_Hekate") {
|
||||||
payload = CTCaer_Hekate;
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open("GET", "https://github.com/ElijahZAwesome/web-cfw-loader/raw/master/hekate_ctcaer_4.2.bin");
|
||||||
|
xhr.responseType = "blob";//force the HTTP response, response-type header to be blob
|
||||||
|
xhr.onload = function()
|
||||||
|
{
|
||||||
|
payload = xhr.response;//xhr.response is now a blob object
|
||||||
|
}
|
||||||
|
xhr.send();
|
||||||
|
//payload = CTCaer_Hekate;
|
||||||
|
|
||||||
} else if (payloadType === "fusee") {
|
} else if (payloadType === "fusee") {
|
||||||
payload = fusee;
|
payload = fusee;
|
||||||
|
|
Loading…
Reference in New Issue