From bac187f3a0f7e8f92d33ca0258fe2e96553d2930 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 21 Jun 2016 11:30:12 +0200 Subject: request fullscreen on documentElement instead of body (#1621 #1624) --- js/reveal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 10c609e..7d9a305 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1995,10 +1995,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 || -- cgit v1.2.3