set status earlier
This commit is contained in:
parent
8147230d42
commit
639a0bcd24
2 changed files with 6 additions and 4 deletions
|
|
@ -24,6 +24,7 @@
|
|||
update.status.style.fontFamily = 'Lucida Grande, Segoe UI, DejaVu Sans, Lucida Sans Unicode, Helvetica, Arial, sans-serif';
|
||||
update.status.style.fontSize = '11px';
|
||||
document.querySelector('#loadingScreen').appendChild(update.status);
|
||||
update.status.innerHTML = '';
|
||||
updateStatus();
|
||||
}
|
||||
|
||||
|
|
@ -135,7 +136,7 @@
|
|||
};
|
||||
xhr.onerror = function() {
|
||||
var status = update.status.innerHTML;
|
||||
if (['Relaunching...'].indexOf(status) == -1) {
|
||||
if (['Relaunching...', ''].indexOf(status) == -1) {
|
||||
update.status.innerHTML = 'Installation failed';
|
||||
}
|
||||
load();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue