Prettified Code!
This commit is contained in:
parent
a7a25e1bee
commit
9040f37849
1 changed files with 14 additions and 11 deletions
|
@ -62,9 +62,12 @@ const _monitorProgress = (bb, oncheck = null) => {
|
|||
}
|
||||
|
||||
const timeSpent = performance.now() - init;
|
||||
setTimeout(() => {
|
||||
setTimeout(
|
||||
() => {
|
||||
if (running) _checkProgress();
|
||||
}, Math.max(0, minDelay - timeSpent));
|
||||
},
|
||||
Math.max(0, minDelay - timeSpent)
|
||||
);
|
||||
};
|
||||
|
||||
_checkProgress();
|
||||
|
|
Loading…
Reference in a new issue