Closed pekayatt closed 11 years ago
at line 281 of CCFileUtils.js
else { if (xhr.overrideMimeType) xhr.overrideMimeType("text\/plain; charset=utf-8"); xhr.onload = function (e) { if (xhr.responseText) { cc.Loader.getInstance().onResLoaded(); selfPointer._textFileCache[fileUrl] = xhr.responseText; } }; }
instead of
else { if (xhr.overrideMimeType) xhr.overrideMimeType("text\/plain; charset=utf-8"); xhr.onload = function (e) { if (xhr.responseText) { cc.Loader.getInstance().onResLoaded(); selfPointer._fileDataCache[fileUrl] = xhr.responseText; } }; }
It has been fixed at https://github.com/xingsenma/cocos2d-html5/commit/0e6f84632cb27610f16519a3308fba05a40c147c
Thank you.
at line 281 of CCFileUtils.js
instead of