diff --git a/src/egret/display/Texture.ts b/src/egret/display/Texture.ts index 3254382b28..7c8f19fabb 100644 --- a/src/egret/display/Texture.ts +++ b/src/egret/display/Texture.ts @@ -273,7 +273,7 @@ module egret { var winURL = window["URL"] || window["webkitURL"]; if (Texture._bitmapCallbackMap[url] == null) {//非正在加载中 Texture._addToCallbackList(url, callback); - if (url.indexOf("http:") != 0 && url.indexOf("https:") != 0 && (Browser.getInstance().isIOS() && parseInt(Browser.getInstance().getIOSVersion().charAt(0)) >= 7) && winURL) { + if (url.indexOf("data:") != 0 && url.indexOf("http:") != 0 && url.indexOf("https:") != 0 && (Browser.getInstance().isIOS() && parseInt(Browser.getInstance().getIOSVersion().charAt(0)) >= 7) && winURL) { var xhr = new XMLHttpRequest(); xhr.open("get", url, true); xhr.responseType = "blob"; @@ -411,4 +411,4 @@ declare module egret_native { function removeTexture(filePath:string):void; } -} \ No newline at end of file +}