瀏覽代碼

allow fullscreen for background iframes

Hakim El Hattab 8 年之前
父節點
當前提交
3ea7e2ff59
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      js/reveal.js

+ 3 - 0
js/reveal.js

@@ -3122,6 +3122,9 @@
 				// Iframes
 				else if( backgroundIframe ) {
 					var iframe = document.createElement( 'iframe' );
+					iframe.setAttribute( 'allowfullscreen', '' );
+					iframe.setAttribute( 'mozallowfullscreen', '' );
+					iframe.setAttribute( 'webkitallowfullscreen', '' );
 
 					// Only load autoplaying content when the slide is shown to
 					// avoid having it play in the background