diff --git a/app.js b/app.js index a8f114d0c..a00dfbda4 100644 --- a/app.js +++ b/app.js @@ -1119,13 +1119,12 @@ function scrollChatToBottom() { function toggleFullScreen() { var fsElement = document.documentElement; - if (!document.mozFullScreen && !document.webkitFullScreen){ + if (!document.mozFullScreen && !document.webkitIsFullScreen){ //Enter Full Screen if (fsElement.mozRequestFullScreen) { fsElement.mozRequestFullScreen(); - } else { fsElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); @@ -1138,6 +1137,7 @@ function toggleFullScreen() { document.mozCancelFullScreen(); } else { document.webkitCancelFullScreen(); + document.webkitCancelFullScreen(); } } } diff --git a/index.html b/index.html index e7a9f36d4..2ed1979fc 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + @@ -36,7 +36,7 @@
- +