|
@@ -158,7 +158,7 @@ upload = {
|
|
if (e.lengthComputable) {
|
|
if (e.lengthComputable) {
|
|
|
|
|
|
// Calculate progress
|
|
// Calculate progress
|
|
- progress = (e.loaded / e.total * 100) || 0;
|
|
|
|
|
|
+ progress = (e.loaded / e.total * 100 | 0);
|
|
|
|
|
|
// Set progress when progress has changed
|
|
// Set progress when progress has changed
|
|
if (progress>pre_progress) {
|
|
if (progress>pre_progress) {
|