Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #278 from ademarre-ca/iframe-vr-feature-policy
Browse files Browse the repository at this point in the history
Add 'allow="vr"' Feature Policy attribute to iframe to permit WebVR
  • Loading branch information
lincolnfrog authored Nov 28, 2017
2 parents 8966d4f + 35e0523 commit b33bee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ Player.prototype.createIframe_ = function(contentInfo) {
var iframe = document.createElement('iframe');
iframe.setAttribute('allowfullscreen', true);
iframe.setAttribute('scrolling', 'no');
iframe.setAttribute('allow', 'vr');
iframe.style.border = 0;

// Handle iframe size if width and height are specified.
Expand Down

0 comments on commit b33bee6

Please sign in to comment.