summaryrefslogtreecommitdiff
path: root/app/client/util/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-04 20:26:09 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-04 20:26:09 +0200
commit3362d0a5ad4808617993b904d698eb35cf6cf737 (patch)
treeac4a1f4d76cd4fe2e81b2bc756f077798928b88e /app/client/util/index.js
parent2289265cdf7fda841e83882c602f3020c75de37c (diff)
fix progress
Diffstat (limited to 'app/client/util/index.js')
-rw-r--r--app/client/util/index.js4
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