fix onProgress handling in slice function

This commit is contained in:
casperlamboo 2017-07-20 00:06:19 +02:00
parent a79308dc8f
commit 0564f3e7bc

View File

@ -52,7 +52,9 @@ export default class {
break;
}
case 'PROGRESS': {
onProgress(data);
if (typeof onProgress !== 'undefined') {
onProgress(data);
}
break;
}
}