Fix 694d846b64 - JSON parse error on upload progress
Ref:694d846b64Ref:d344a8f7aeYou can see the JSON parse error in the console when you have the upload progress extension Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
e7612bc49a
commit
df143fd879
@ -183,7 +183,8 @@ var Console = {
|
||||
});
|
||||
|
||||
$(document).on('ajaxComplete', function (event, xhr, ajaxOptions) {
|
||||
if (ajaxOptions.dataType && ajaxOptions.dataType.indexOf('json') !== -1) {
|
||||
// Not a json body, then skip
|
||||
if (ajaxOptions.dataType && ajaxOptions.dataType.indexOf('json') === -1) {
|
||||
return;
|
||||
}
|
||||
if (xhr.status !== 200) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user