From fce6e53e1a5c7d40e1272ec6b1fa4f415980e1e2 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Mon, 11 May 2020 16:52:46 -0400 Subject: [PATCH] v1.1.0-beta/hide on fullscreen --- src/App.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.js b/src/App.js index d22f32c..793af17 100644 --- a/src/App.js +++ b/src/App.js @@ -54,6 +54,11 @@ const App = () => { PartyRoutesWrapper && PartyRoutesWrapper.classList.remove('visible'); } + // HANDLE FULLSCREEN EVENT + document.onfullscreenchange = () => { + if (document.fullscreenElement) setVisible(false); + }; + return (