Hi,
For last few days I try to run my cocos2d-x programm on javascript with emscripten. For this moment it work fine in Chrome, Opera and Firefox. And now I have problems with Safari. It can`t load files and finished with errors when progress bar in finished on "Downloading data..."
[Error]
TypeError: 'undefined' is not an object (evaluating 'canvas.exitPointerLock.bind')
init (HelloCpp.js, line 6632)
createPreloadedFile (HelloCpp.js, line 5760)
onload (HelloCpp.data.js, line 30)
processPackageData (HelloCpp.data.js, line 160)
onload (HelloCpp.data.js, line 147)
It`s crashes on first file. Places are:
HelloCpp.data.js, line 30:
Module['FS_createPreloadedFile']('/', 'CloseNormal.png', byteArray, true, true, function() {
Module['removeRunDependency']('fp CloseNormal.png');
});
HelloCpp.data.js, line 160:
curr = DataRequest.prototype.requests['CloseNormal.png'];
curr.response = byteArray.subarray(0,6835);
curr.onload();
HelloCpp.data.js, line 147:
xhr.onload = function(event) {
var packageData = xhr.response;
callback(packageData);
};
What you think about this and how I can fix this problem?