Prettified Code!

This commit is contained in:
zero01101 2023-08-31 12:55:13 +00:00 committed by GitHub Action
parent 4e3b11c5c3
commit 2f3c65e28f
2 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,4 @@
<!DOCTYPE html> <!doctype html>
<html lang="en-US"> <html lang="en-US">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />

View file

@ -62,9 +62,12 @@ const _monitorProgress = (bb, oncheck = null) => {
} }
const timeSpent = performance.now() - init; const timeSpent = performance.now() - init;
setTimeout(() => { setTimeout(
if (running) _checkProgress(); () => {
}, Math.max(0, minDelay - timeSpent)); if (running) _checkProgress();
},
Math.max(0, minDelay - timeSpent)
);
}; };
_checkProgress(); _checkProgress();