mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-26 11:15:48 +01:00
Fix launcher with new config system
This commit is contained in:
parent
d4dd3fb182
commit
708a194764
@ -252,7 +252,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (e.is_launcher) {
|
if (e.is_launcher) {
|
||||||
document.getElementById("window-title").innerText = config.name + " Updater";
|
document.getElementById("window-title").innerText = app.attrs.name + " Updater";
|
||||||
|
|
||||||
app.is_launcher = true;
|
app.is_launcher = true;
|
||||||
app.install();
|
app.install();
|
||||||
|
@ -26,7 +26,7 @@ function ajax(path, successCallback, failCallback, data) {
|
|||||||
if (this.status === 200 && this.getResponseHeader('Content-Type').indexOf("application/json") !== -1) {
|
if (this.status === 200 && this.getResponseHeader('Content-Type').indexOf("application/json") !== -1) {
|
||||||
successCallback(JSON.parse(this.responseText));
|
successCallback(JSON.parse(this.responseText));
|
||||||
} else {
|
} else {
|
||||||
failCallback();
|
failCallback(this.responseText);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
req.addEventListener("error", failCallback);
|
req.addEventListener("error", failCallback);
|
||||||
@ -69,7 +69,7 @@ function stream_ajax(path, callback, successCallback, failCallback, data) {
|
|||||||
if (this.status === 200) {
|
if (this.status === 200) {
|
||||||
successCallback(this.responseText);
|
successCallback(this.responseText);
|
||||||
} else {
|
} else {
|
||||||
failCallback();
|
failCallback(this.responseText);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user