Pārlūkot izejas kodu

Merge pull request #2437 from TehDmitry/dev

Allowing autoplay in data-background-iframe for audio and video elements
Hakim El Hattab 5 gadi atpakaļ
vecāks
revīzija
201e8316a2
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      js/reveal.js

+ 1 - 0
js/reveal.js

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