Skip to content

Commit

Permalink
Merge pull request #1657 from WordPress/fix/youtube-presentation-error
Browse files Browse the repository at this point in the history
Allow presentation from sandboxed iframe to fix error in Chrome
  • Loading branch information
notnownikki authored Jul 3, 2017
2 parents e2c5857 + 42d9660 commit fa445c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/sandbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default class Sandbox extends wp.element.Component {
ref={ ( node ) => this.iframe = node }
title={ this.props.title }
scrolling="no"
sandbox="allow-scripts allow-same-origin"
sandbox="allow-scripts allow-same-origin allow-presentation"
onLoad={ this.trySandbox }
width={ this.state.width }
height={ this.state.height } />
Expand Down

0 comments on commit fa445c0

Please sign in to comment.