forked from MarseyWorld/MarseyWorld
minor syntax change
parent
81cb280990
commit
f9830ec6d0
|
@ -223,7 +223,7 @@ function handleUploadProgress(evt) {
|
|||
uploadfilelist.classList.remove("d-none")
|
||||
if (evt.lengthComputable) {
|
||||
const progressPercent = Math.floor((evt.loaded / evt.total) * 100);
|
||||
bar.setAttribute('value', progressPercent);
|
||||
bar.value = progressPercent;
|
||||
percentIndicator.textContent = progressPercent + '%';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue