Skip to content

Commit

Permalink
Expanded the fullscreen polyfill.
Browse files Browse the repository at this point in the history
Now it includes fullscreenEnabled.

Closes #669

Change-Id: I7df3c422ecc72215a48ba72ac57aae2bc9b600d5
  • Loading branch information
theodab committed Feb 10, 2017
1 parent 933f5f9 commit 8ab9188
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/polyfill/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ shaka.polyfill.Fullscreen.install = function() {
document.webkitFullscreenElement;
}
});
Object.defineProperty(document, 'fullscreenEnabled', {
get: function() {
return document.mozFullScreenEnabled ||
document.msFullscreenEnabled ||
document.webkitFullscreenEnabled;
}
});
}

var proxy = shaka.polyfill.Fullscreen.proxyEvent_;
Expand Down

0 comments on commit 8ab9188

Please sign in to comment.