Skip to content

Commit

Permalink
Merge pull request #1743 from bmclaughlin/vnc-console-firefox-fullscr…
Browse files Browse the repository at this point in the history
…een-btn

Fix full screen button for Firefox in remote consoles
  • Loading branch information
martinpovolny authored Jul 27, 2017
2 parents 41cef52 + e6456b4 commit 4f1c4ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/remote_console.html.haml
Original file line number Diff line number Diff line change
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 4f1c4ec

Please sign in to comment.