Merge pull request #2437 from TehDmitry/dev

Allowing autoplay in data-background-iframe for audio and video elements
This commit is contained in:
Hakim El Hattab 2019-12-09 21:09:38 +01:00 committed by GitHub
commit 201e8316a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -3862,6 +3862,7 @@
iframe.setAttribute( 'allowfullscreen', '' ); iframe.setAttribute( 'allowfullscreen', '' );
iframe.setAttribute( 'mozallowfullscreen', '' ); iframe.setAttribute( 'mozallowfullscreen', '' );
iframe.setAttribute( 'webkitallowfullscreen', '' ); iframe.setAttribute( 'webkitallowfullscreen', '' );
iframe.setAttribute( 'allow', 'autoplay' );
iframe.setAttribute( 'data-src', backgroundIframe ); iframe.setAttribute( 'data-src', backgroundIframe );