no decimal places

This commit is contained in:
2024-04-22 20:34:01 +10:00
parent d6a84e2496
commit b84f78b00b

View File

@@ -135,7 +135,7 @@ let SM = {
let percent = (progressEvent.loaded / progressEvent.total) * 100;
Swal.update({
title: 'Uploading...',
html: `${file.name} - ${percent.toFixed(2)}%`,
html: `${file.name} - ${Math.round(percent)}%`,
});
}
}).then((response) => {