diff --git a/src/pixi/loaders/BitmapFontLoader.js b/src/pixi/loaders/BitmapFontLoader.js index ef05094..2a9ddaa 100644 --- a/src/pixi/loaders/BitmapFontLoader.js +++ b/src/pixi/loaders/BitmapFontLoader.js @@ -89,7 +89,7 @@ { if (this.ajaxRequest.readyState == 4) { - if (this.ajaxRequest.status == 200 || window.location.href.indexOf("http") == -1) + if (this.ajaxRequest.status == 200 || window.location.protocol.indexOf("http") == -1) { var textureUrl = this.baseUrl + this.ajaxRequest.responseXML.getElementsByTagName("page")[0].attributes.getNamedItem("file").nodeValue; var image = new PIXI.ImageLoader(textureUrl, this.crossorigin); diff --git a/src/pixi/loaders/BitmapFontLoader.js b/src/pixi/loaders/BitmapFontLoader.js index ef05094..2a9ddaa 100644 --- a/src/pixi/loaders/BitmapFontLoader.js +++ b/src/pixi/loaders/BitmapFontLoader.js @@ -89,7 +89,7 @@ { if (this.ajaxRequest.readyState == 4) { - if (this.ajaxRequest.status == 200 || window.location.href.indexOf("http") == -1) + if (this.ajaxRequest.status == 200 || window.location.protocol.indexOf("http") == -1) { var textureUrl = this.baseUrl + this.ajaxRequest.responseXML.getElementsByTagName("page")[0].attributes.getNamedItem("file").nodeValue; var image = new PIXI.ImageLoader(textureUrl, this.crossorigin); diff --git a/src/pixi/loaders/JsonLoader.js b/src/pixi/loaders/JsonLoader.js index 640ecbf..2c2d482 100644 --- a/src/pixi/loaders/JsonLoader.js +++ b/src/pixi/loaders/JsonLoader.js @@ -80,7 +80,7 @@ */ PIXI.JsonLoader.prototype.onJSONLoaded = function () { if (this.ajaxRequest.readyState == 4) { - if (this.ajaxRequest.status == 200 || window.location.href.indexOf("http") == -1) { + if (this.ajaxRequest.status == 200 || window.location.protocol.indexOf("http") == -1) { this.json = JSON.parse(this.ajaxRequest.responseText); if(this.json.frames)