code cosmetics

This commit is contained in:
tophf 2018-02-16 12:49:53 +03:00
parent b9b2c4cbd7
commit d82dceada9

View File

@ -79,7 +79,7 @@ function checkUpdateAll() {
const maxWidth = progress.parentElement.clientWidth;
progress.style.width = Math.round(checked / total * maxWidth) + 'px';
if (checked < total) return;
if (!info.done) return;
port.onMessage.removeListener(observer);
document.body.classList.remove('update-in-progress');