Update main.js
parent
b40769d970
commit
fd825b1d6e
14
main.js
14
main.js
|
@ -147,19 +147,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
||||||
|
|
||||||
let payload;
|
let payload;
|
||||||
if (payloadType === "CTCaer_Hekate") {
|
if (payloadType === "CTCaer_Hekate") {
|
||||||
var xhr = new XMLHttpRequest();
|
payload = CTCaer_Hekate;
|
||||||
xhr.open("GET", "http://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
|
|
||||||
if(payload == null) {
|
|
||||||
console.log("is null oof");
|
|
||||||
}
|
|
||||||
console.log(payload);
|
|
||||||
}
|
|
||||||
xhr.send();
|
|
||||||
//payload = CTCaer_Hekate;
|
|
||||||
|
|
||||||
} else if (payloadType === "fusee") {
|
} else if (payloadType === "fusee") {
|
||||||
payload = fusee;
|
payload = fusee;
|
||||||
|
|
Loading…
Reference in New Issue