stop polling as soon as last file begins uploading
This commit is contained in:
parent
6ef96a9dc5
commit
7719e33832
|
@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
for (const [index, offset] of info.offsets.entries()) {
|
||||
table.children[index].className = (offset > info.available) ? "unavailable" : "";
|
||||
}
|
||||
if (info.available === info.file.size) {
|
||||
if (info.offsets.length === 0 || info.available >= info.offsets.at(-1)) {
|
||||
clearInterval(updateInterval);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue