Skip to content

Commit

Permalink
Merge pull request #1 from NeoGuo/NeoGuo-patch-1
Browse files Browse the repository at this point in the history
增加对base64图片的支持
  • Loading branch information
NeoGuo committed Jun 13, 2015
2 parents 9781580 + 1365b57 commit 0d1b8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/egret/display/Texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -411,4 +411,4 @@ declare module egret_native {

function removeTexture(filePath:string):void;
}
}
}

0 comments on commit 0d1b8b6

Please sign in to comment.