We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b29cfb + b209557 commit 87b1786Copy full SHA for 87b1786
cocos2d/core/utils/BinaryLoader.js
@@ -81,7 +81,6 @@ cc.loader.loadBinarySync = function (url) {
81
req.timeout = 0;
82
var errInfo = "load " + url + " failed!";
83
req.open('GET', url, false);
84
- req.responseType = 'arraybuffer';
85
var arrayInfo = null;
86
if (cc.loader.loadBinary._IEFilter) {
87
req.setRequestHeader("Accept-Charset", "x-user-defined");
@@ -104,7 +103,7 @@ cc.loader.loadBinarySync = function (url) {
104
103
return null;
105
}
106
107
- arrayInfo = new Uint8Array(req.response);
+ arrayInfo = self._str2Uint8Array(req.responseText);
108
109
return arrayInfo;
110
};
0 commit comments