Skip to content

Commit

Permalink
Fix full screen button for Firefox in remote consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
bmclaughlin committed Jul 24, 2017
1 parent 258644c commit e6456b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/remote_console.html.haml
Expand Up @@ -45,10 +45,10 @@
}
break;
case document.mozFullScreenEnabled:
if (document.mozFullscreenElement) {
document.mozExitFullscreen();
if (document.mozFullScreenElement) {
document.mozCancelFullScreen();
} else {
document.documentElement.mozRequestFullscreen();
document.documentElement.mozRequestFullScreen();
}
break;
case document.msFullscreenEnabled:
Expand Down

0 comments on commit e6456b4

Please sign in to comment.