|
|
@ -212,6 +212,7 @@ var cachedAssetsManager = (function() {
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
var getTextFileFromURL = function(url, onLoad, onError) {
|
|
|
|
var getTextFileFromURL = function(url, onLoad, onError) {
|
|
|
|
|
|
|
|
// https://github.com/gorhill/uMatrix/issues/15
|
|
|
|
var onResponseReceived = function() {
|
|
|
|
var onResponseReceived = function() {
|
|
|
|
if ( typeof this.status === 'number' && this.status >= 200 && this.status < 300 ) {
|
|
|
|
if ( typeof this.status === 'number' && this.status >= 200 && this.status < 300 ) {
|
|
|
|
return onLoad.call(this);
|
|
|
|
return onLoad.call(this);
|
|
|
|