Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
request.onload = function (e) {
if (e.target.status == 200) {
SparkMD5.file(request.response, callback);
} else {
console.error(e);
callback(null);
}
};
request.onerror = function (e) {