Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the polyfill wait until after the Origin Trial as kicked in #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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