You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "undefined" value is actually Module['canvas']
The culprit seems to be src/librarybrowser.js:198
varcanvas=Module['canvas'];// forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module// Module['forcedAspectRatio'] = 4 / 3;canvas.requestPointerLock=canvas['requestPointerLock']||canvas['mozRequestPointerLock']||canvas['webkitRequestPointerLock']||canvas['msRequestPointerLock']||function(){};
My program doesn't even use canvas (and the loaded file is not an image or animation), so I don't understand what the purpose of this code is.
I think your project's html file does not define a canvas? I pushed a commit now to incoming to not set up the events if a canvas is not present, does that fix it?
After adding a text file with
--preload-file
, I started to get the following error:The "undefined" value is actually
Module['canvas']
The culprit seems to be src/librarybrowser.js:198
My program doesn't even use canvas (and the loaded file is not an image or animation), so I don't understand what the purpose of this code is.
Edit: Issue #1042 might be related.
The text was updated successfully, but these errors were encountered: