1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-13 18:14:33 +02:00

request fullscreen on documentElement instead of body (#1621 #1624)

This commit is contained in:
Hakim El Hattab
2016-06-21 11:30:12 +02:00
parent ce777e4c4b
commit a12a17b2d7
3 changed files with 2 additions and 17 deletions

View File

@@ -1980,10 +1980,10 @@
*/
function enterFullscreen() {
var element = document.body;
var element = document.documentElement;
// Check which implementation is available
var requestMethod = element.requestFullScreen ||
var requestMethod = element.requestFullscreen ||
element.webkitRequestFullscreen ||
element.webkitRequestFullScreen ||
element.mozRequestFullScreen ||