aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
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();