I upgraded my repo from alpha 22 to alpha 38 today. Now I’m getting this error:
ReferenceError: document is not defined
at Engine2.ThinEngine2._checkForMobile (thinEngine.ts:745)
at Engine2.ThinEngine2 (thinEngine.ts:749)
at new Engine2 (engine.ts:528)
I’m running my scene in an OffscreenCanvas worker where document is indeed not defined. I noticed these changes came in with these commits:
Is there any chance this could be fixed to work with Offscreen Canvas workers?