debugginngggggg
parent
f925e1c40d
commit
b40769d970
6
main.js
6
main.js
|
@ -148,11 +148,15 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
||||||
let payload;
|
let payload;
|
||||||
if (payloadType === "CTCaer_Hekate") {
|
if (payloadType === "CTCaer_Hekate") {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", "https://github.com/ElijahZAwesome/web-cfw-loader/raw/master/hekate_ctcaer_4.2.bin");
|
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.responseType = "blob";//force the HTTP response, response-type header to be blob
|
||||||
xhr.onload = function()
|
xhr.onload = function()
|
||||||
{
|
{
|
||||||
payload = xhr.response;//xhr.response is now a blob object
|
payload = xhr.response;//xhr.response is now a blob object
|
||||||
|
if(payload == null) {
|
||||||
|
console.log("is null oof");
|
||||||
|
}
|
||||||
|
console.log(payload);
|
||||||
}
|
}
|
||||||
xhr.send();
|
xhr.send();
|
||||||
//payload = CTCaer_Hekate;
|
//payload = CTCaer_Hekate;
|
||||||
|
|
Loading…
Reference in New Issue