diff options
Diffstat (limited to 'app/client/util/index.js')
| -rw-r--r-- | app/client/util/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
