@@ -797,7 +797,7 @@ cc.loader = (function () {
797
797
xhr . setRequestHeader ( "Accept-Charset" , "utf-8" ) ;
798
798
xhr . onreadystatechange = function ( ) {
799
799
if ( xhr . readyState === 4 )
800
- xhr . status === 200 ? cb ( null , xhr . responseText ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
800
+ ( xhr . status === 200 || xhr . status === 0 ) ? cb ( null , xhr . responseText ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
801
801
} ;
802
802
} else {
803
803
if ( xhr . overrideMimeType ) xhr . overrideMimeType ( "text\/plain; charset=utf-8" ) ;
@@ -806,7 +806,7 @@ cc.loader = (function () {
806
806
clearTimeout ( xhr . _timeoutId ) ;
807
807
}
808
808
if ( xhr . readyState === 4 ) {
809
- xhr . status === 200 ? cb ( null , xhr . responseText ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
809
+ ( xhr . status === 200 || xhr . status === 0 ) ? cb ( null , xhr . responseText ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
810
810
}
811
811
} ;
812
812
xhr . onerror = function ( ) {
@@ -845,7 +845,7 @@ cc.loader = (function () {
845
845
window . msg = arrayBuffer ;
846
846
}
847
847
if ( xhr . readyState === 4 ) {
848
- xhr . status === 200 ? cb ( null , xhr . response ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
848
+ ( xhr . status === 200 || xhr . status === 0 ) ? cb ( null , xhr . response ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
849
849
}
850
850
} ;
851
851
xhr . onerror = function ( ) {
0 commit comments