forked from 0x2620/pandora
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();
|
initUpload();
|
||||||
|
|
||||||
function done() {
|
function done() {
|
||||||
|
var response;
|
||||||
|
try {
|
||||||
|
response = JSON.parse(that.responseText);
|
||||||
|
} catch(e) {}
|
||||||
that.triggerEvent('done', {
|
that.triggerEvent('done', {
|
||||||
status: that.status,
|
status: that.status,
|
||||||
progress: that.progress,
|
progress: that.progress,
|
||||||
|
response: response,
|
||||||
responseText: that.responseText
|
responseText: that.responseText
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue