diff options
author | Hakim El Hattab | 2016-06-21 11:30:12 +0200 |
---|---|---|
committer | Hakim El Hattab | 2016-06-21 11:30:12 +0200 |
commit | a12a17b2d7053fad006ae9914309e8fb56c44329 (patch) | |
tree | 3625a609d1dfa97873dc1226fada7bf228a6f71b /js | |
parent | ce777e4c4b5517bf2210bc9839909413a48f42fa (diff) |
request fullscreen on documentElement instead of body (#1621 #1624)
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index 4999bdb..d8cc4fc 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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 || |