aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Bidelman2012-04-16 17:34:08 -0700
committerEric Bidelman2012-04-16 17:34:08 -0700
commit5a15dcab5fd3bf90915f811bc7072f6ef8c34a07 (patch)
tree0ead2083e98acb1ea5ae8c111cb2ca2bc66d9c75 /js
parentda0e41ba395d72839184e66fd27a0c50c8160c4d (diff)
downloadio-slides-remote-5a15dcab5fd3bf90915f811bc7072f6ef8c34a07.tar.gz
Fixing FF fullscreen console error
Diffstat (limited to 'js')
-rw-r--r--js/slides.js4
1 files 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) {
164 // Also, ignore browser's fullscreen shortcut (cmd+shift+f) so we don't 164 // Also, ignore browser's fullscreen shortcut (cmd+shift+f) so we don't
165 // get trapped in fullscreen! 165 // get trapped in fullscreen!
166 if (e.target == document.body && !(e.shiftKey && e.metaKey)) { 166 if (e.target == document.body && !(e.shiftKey && e.metaKey)) {
167 if (!!!document.mozFullScreen) { 167 if (document.mozFullScreen !== undefined && !document.mozFullScreen) {
168 document.body.mozRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); 168 document.body.mozRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
169 } else if (!!!document.webkitIsFullScreen) { 169 } else if (document.webkitIsFullScreen !== undefined && !document.webkitIsFullScreen) {
170 document.body.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); 170 document.body.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
171 } else { 171 } else {
172 document.cancelFullScreen(); 172 document.cancelFullScreen();