set status earlier

This commit is contained in:
j 2016-01-21 14:23:35 +05:30
commit 639a0bcd24
2 changed files with 6 additions and 4 deletions

View file

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