Skip to content

Instantly share code, notes, and snippets.

@robnyman
Last active June 22, 2018 18:36
Show Gist options
  • Save robnyman/1705463 to your computer and use it in GitHub Desktop.
Save robnyman/1705463 to your computer and use it in GitHub Desktop.
Fullscreen API, cancelling
if (document.exitFullscreen) {
document.exitFullscreen();
}
else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
}
else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
else if (document.msExitFullscreen) {
document.msExitFullscreen();
}
@huangguozhen
Copy link

Firefox 50.1.0 for Ubuntu can't work。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment