try to parse response as json after chunkupload
This commit is contained in:
parent
d94b5d1db0
commit
157c4f2755
1 changed files with 5 additions and 0 deletions
|
@ -41,9 +41,14 @@ pandora.chunkupload = function(options) {
|
|||
initUpload();
|
||||
|
||||
function done() {
|
||||
var response;
|
||||
try {
|
||||
response = JSON.parse(that.responseText);
|
||||
} catch(e) {}
|
||||
that.triggerEvent('done', {
|
||||
status: that.status,
|
||||
progress: that.progress,
|
||||
response: response,
|
||||
responseText: that.responseText
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue