From d82dceada9f2f820236f674e9fe613ac40b7103b Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 16 Feb 2018 12:49:53 +0300 Subject: [PATCH] code cosmetics --- manage/updater-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage/updater-ui.js b/manage/updater-ui.js index dbfc1d1c..5a77f713 100644 --- a/manage/updater-ui.js +++ b/manage/updater-ui.js @@ -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');