Skip to content

Commit

Permalink
fix(fullscreen): Fixed issues related to non-standard methods for ful…
Browse files Browse the repository at this point in the history
…lscreen
  • Loading branch information
rafa8626 committed Oct 16, 2018
1 parent aed189f commit 2a95d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/controls/fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Fullscreen implements PlayerComponent {
// Check if fullscreen is supported
this.fullScreenEnabled = !!(target.fullscreenEnabled || target.mozFullScreenEnabled ||
target.msFullscreenEnabled || target.webkitSupportsFullscreen ||
target.webkitFullscreenEnabled || document.createElement('video').webkitRequestFullScreen);
target.webkitFullscreenEnabled || (document.createElement('video') as any).webkitRequestFullScreen);

return this;
}
Expand Down Expand Up @@ -181,7 +181,7 @@ class Fullscreen implements PlayerComponent {
target.exitFullscreen();
} else if (target.mozCancelFullScreen) {
target.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
} else if ((document as any).webkitCancelFullScreen) {
target.webkitCancelFullScreen();
} else if (target.msExitFullscreen) {
target.msExitFullscreen();
Expand Down

0 comments on commit 2a95d4c

Please sign in to comment.