summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHakim El Hattab2019-12-09 21:09:38 +0100
committerGitHub2019-12-09 21:09:38 +0100
commit201e8316a279c7ffb9ed8bd4a093cd41a979fd01 (patch)
tree0fc27d43ed566d8524fb6674884df9250847d639
parentbb8b4d8883645de9c6fedc885b498f117773d35d (diff)
parentbdda443335ceb39ea796ec185655e69e970c0698 (diff)
Merge pull request #2437 from TehDmitry/dev
Allowing autoplay in data-background-iframe for audio and video elements
-rw-r--r--js/reveal.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 57fe29d..fce3dbc 100644
--- a/js/reveal.js
+++ b/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 );