debugginngggggg

pull/43/head
Elijah Bansley 2018-10-21 13:47:14 -05:00
parent f925e1c40d
commit b40769d970
1 changed files with 5 additions and 1 deletions

View File

@ -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;