Skip to content

Commit

Permalink
Update client_side_ad.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Velad Galván committed Jan 12, 2022
1 parent 3f8f31d commit e4448a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ads/client_side_ad.js
Expand Up @@ -183,7 +183,7 @@ shaka.ads.ClientSideAd = class {
let isInFullscreen = false;
const video = /** @type {HTMLVideoElement} */(this.video_);
if (document.fullscreenEnabled) {
isInFullscreen = document.fullscreenElement;
isInFullscreen = !!document.fullscreenElement;
} else if (video.webkitSupportsFullscreen) {
isInFullscreen = video.webkitDisplayingFullscreen;
}
Expand Down

0 comments on commit e4448a6

Please sign in to comment.