From 5a15dcab5fd3bf90915f811bc7072f6ef8c34a07 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Mon, 16 Apr 2012 17:34:08 -0700 Subject: Fixing FF fullscreen console error --- js/slides.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/slides.js b/js/slides.js index f089d30..20bb1bd 100644 --- a/js/slides.js +++ b/js/slides.js @@ -164,9 +164,9 @@ SlideDeck.prototype.onBodyKeyDown_ = function(e) { // Also, ignore browser's fullscreen shortcut (cmd+shift+f) so we don't // get trapped in fullscreen! if (e.target == document.body && !(e.shiftKey && e.metaKey)) { - if (!!!document.mozFullScreen) { + if (document.mozFullScreen !== undefined && !document.mozFullScreen) { document.body.mozRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); - } else if (!!!document.webkitIsFullScreen) { + } else if (document.webkitIsFullScreen !== undefined && !document.webkitIsFullScreen) { document.body.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); } else { document.cancelFullScreen(); -- cgit v1.2.3