Skip to content

Conversation

@wibblymat
Copy link

A starting point for discussion, if nothing else. Fixes #21... mostly.

The problem is that there isn't anywhere for us to insert our script that is after the Origin Trial is loaded but before any page script could be run. Testing shows that the script here is injected after scripts in the head but before scripts in the body.

This means that coming in after the Origin Trial gives the page chance to get a reference to the real versions of things like VRFrameData and navigator.getVRDisplays().

For me personally, I load my scripts in the body, and this change fixes things perfectly. For people who run their scripts in the head I'm not sure what happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workaround for Origin Trials

1 participant