WebXRQuestEmulator
WebXRQuestEmulator copied to clipboard
How to inject into dynamic iframes?
Is there a way to load the extension/polyfill after an initial load?
I'm using web editors that load iframes dynamically once one presses a "play" button, notably the p5.js web editor.
Here is an examples through the p5.js web editor: https://editor.p5js.org/TiborUdvari/sketches/G1S1g40xx The same example working directly: https://www.tiborudvari.com/sketchbook/spatial-computing/hello-box/index.html
I'm no expert in web extensions, but I'm guessing this is where the polyfill actually loads? https://github.com/meta-quest/immersive-web-emulator/blob/7abf503a42ac9d235351ca84d5bf9f3e06bb65de/src/extension/service-worker.js#L32 I also noticed it was the code that is near https://github.com/meta-quest/immersive-web-emulator/issues/11.
What would be the best way to approach this?
For some context, I'm working on a way of doing live coding with webxr, like this, but for development purposes it would be great to have it working with the Immersive Web Emulator.