fixed loading bar colors

This commit is contained in:
Nathan DECHER 2020-04-14 15:54:14 +02:00
parent c90bfd5103
commit c850d9ffa9

View file

@ -38,8 +38,8 @@ cvs.classList.add('progressBar');
cvs.classList.add('hiddenBottom');
const bar=new ProgressBar(assetSpecs.length*2+tasks.reduce((a, t) => a+t.steps, 0));
bar.addUpdateListener(() => bar.draw(cvs, '#930a16', '#23090d'));
bar.draw(cvs, '#930a16', '#23090d');
bar.addUpdateListener(() => bar.draw(cvs, '#fba49b', '#930a16'));
bar.draw(cvs, '#fba49b', '#930a16');
document.body.appendChild(cvs);
setTimeout(() => cvs.classList.remove('hiddenBottom'), 0);