Skip to content

Commit

Permalink
Merge pull request #899 from pranavms13/master
Browse files Browse the repository at this point in the history
Repair exitFullScreen() function
  • Loading branch information
muaz-khan committed Apr 24, 2020
2 parents 3ab6624 + 5c8379f commit 2a4fe19
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 2a4fe19

Please sign in to comment.