Skip to content

Commit

Permalink
Add 'allow="vr"' Feature Policy attribute to iframe to permit WebVR i…
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarre-ca committed Nov 20, 2017
1 parent 2f8e9d2 commit 35e0523
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 35e0523

Please sign in to comment.