Update main.js

pull/43/head
Elijah Bansley 2018-10-21 14:44:32 -05:00 committed by GitHub
parent b40769d970
commit fd825b1d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 13 deletions

14
main.js
View File

@ -147,19 +147,7 @@ document.getElementById("goButton").addEventListener("click", async () => {
let payload;
if (payloadType === "CTCaer_Hekate") {
var xhr = new XMLHttpRequest();
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;
payload = CTCaer_Hekate;
} else if (payloadType === "fusee") {
payload = fusee;