@@ -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" ) ;
@@ -811,7 +811,7 @@ cc.loader = (function () {
811
811
xhr . removeEventListener ( 'timeout' , timeoutCallback ) ;
812
812
}
813
813
if ( xhr . readyState === 4 ) {
814
- xhr . status === 200 ? cb ( null , xhr . responseText ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
814
+ ( xhr . status === 200 || xhr . status === 0 ) ? cb ( null , xhr . responseText ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
815
815
}
816
816
} ;
817
817
var errorCallback = function ( ) {
@@ -876,7 +876,7 @@ cc.loader = (function () {
876
876
window . msg = arrayBuffer ;
877
877
}
878
878
if ( xhr . readyState === 4 ) {
879
- xhr . status === 200 ? cb ( null , xhr . response ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
879
+ ( xhr . status === 200 || xhr . status === 0 ) ? cb ( null , xhr . response ) : cb ( { status :xhr . status , errorMessage :errInfo } , null ) ;
880
880
}
881
881
} ;
882
882
var errorCallback = function ( ) {
0 commit comments