fix progressText
This commit is contained in:
parent
b4dfeb8624
commit
ddb6eee9e8
|
@ -65,8 +65,9 @@ isBrowser = (req) ->
|
|||
|
||||
# Process progress text
|
||||
progressText = (progress) ->
|
||||
txt = (progress * 100).toFixed(2) + "%"
|
||||
if progress < 0.1
|
||||
progress = progress * 100
|
||||
txt = progress.toFixed(2) + "%"
|
||||
if progress < 10
|
||||
"0" + txt
|
||||
else
|
||||
txt
|
||||
|
|
Loading…
Reference in New Issue