QR: Fix errors from progress events after abort.
This commit is contained in:
parent
14a7f55e1a
commit
1e7fb54367
@ -711,6 +711,7 @@ QR =
|
||||
form: $.formData formData
|
||||
if Conf['Show Upload Progress']
|
||||
options.onprogress = (e) ->
|
||||
return if @ isnt QR.req?.upload # aborted
|
||||
if e.loaded < e.total
|
||||
# Uploading...
|
||||
QR.req.progress = "#{Math.round e.loaded / e.total * 100}%"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user