handle more response codes, use metadata
This commit is contained in:
@@ -101,7 +101,7 @@ define([], function () {
|
||||
xhr.open("GET", src, true);
|
||||
xhr.responseType = "arraybuffer";
|
||||
xhr.onload = function () {
|
||||
if (this.status !== 200) {
|
||||
if ([200, 304].indexOf(this.status) === -1) {
|
||||
return CB('XHR_ERROR');
|
||||
}
|
||||
return void CB(void 0, new Uint8Array(xhr.response));
|
||||
|
||||
Reference in New Issue
Block a user