From 3362d0a5ad4808617993b904d698eb35cf6cf737 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 4 Jun 2018 20:26:09 +0200 Subject: fix progress --- app/client/util/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/client/util/index.js') diff --git a/app/client/util/index.js b/app/client/util/index.js index 14d4d6f..c5eb8dd 100644 --- a/app/client/util/index.js +++ b/app/client/util/index.js @@ -26,8 +26,8 @@ export function randrange(a,b){ return Math.random() * (b-a) + a } document.body.style.backgroundImage = 'linear-gradient(' + (randint(40)+40) + 'deg, #fde, #ffe)' export const allProgress = (promises, progress_cb) => { - let d = 0; - progress_cb(0); + let d = 0 + progress_cb(0, 0, promises.length) promises.forEach((p) => { p.then((s) => { d += 1 -- cgit v1.2.3-70-g09d2