const exitFull = document.webkitExitFullscreen|| document.mozCancelFullscreen|| document.msExitFullscreen|| document.exitFullscreen; if(exitFull) exitFull();