Fix launcher with new config system

This commit is contained in:
James 2018-08-07 15:48:49 +10:00 committed by James Lonie
parent d4dd3fb182
commit 708a194764
2 changed files with 3 additions and 3 deletions

View file

@ -252,7 +252,7 @@
}
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.install();

View file

@ -26,7 +26,7 @@ function ajax(path, successCallback, failCallback, data) {
if (this.status === 200 && this.getResponseHeader('Content-Type').indexOf("application/json") !== -1) {
successCallback(JSON.parse(this.responseText));
} else {
failCallback();
failCallback(this.responseText);
}
});
req.addEventListener("error", failCallback);
@ -69,7 +69,7 @@ function stream_ajax(path, callback, successCallback, failCallback, data) {
if (this.status === 200) {
successCallback(this.responseText);
} else {
failCallback();
failCallback(this.responseText);
}
});