Skip to content

Commit

Permalink
Repair exitFullScreen()"
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavms13 committed Apr 24, 2020
1 parent 3ab6624 commit 5c8379f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/getHTMLMediaElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ function getHTMLMediaElement(mediaElement, config) {

function exitFullScreen() {
if (document.fullscreen) {
document.cancelFullScreen();
document.exitFullscreen();
}

if (document.mozFullScreen) {
document.mozCancelFullScreen();
}

if (document.webkitIsFullScreen) {
document.webkitCancelFullScreen();
document.webkitExitFullscreen();
}
}

Expand Down

0 comments on commit 5c8379f

Please sign in to comment.