try to parse response as json after chunkupload

This commit is contained in:
j 2014-02-14 13:36:11 +00:00
parent d94b5d1db0
commit 157c4f2755

View file

@ -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
});
}