From e6456b4f55c9739c309c85eb409084313552810c Mon Sep 17 00:00:00 2001 From: Brian McLaughlin Date: Mon, 24 Jul 2017 13:10:42 -0400 Subject: [PATCH] Fix full screen button for Firefox in remote consoles https://bugzilla.redhat.com/show_bug.cgi?id=1454912 --- app/views/layouts/remote_console.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/remote_console.html.haml b/app/views/layouts/remote_console.html.haml index c24d3d94190..c33bbc2a50e 100644 --- a/app/views/layouts/remote_console.html.haml +++ b/app/views/layouts/remote_console.html.haml @@ -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: