diff --git a/lib/polyfill/fullscreen.js b/lib/polyfill/fullscreen.js index 47dfeb7c0d..19c4118ae9 100644 --- a/lib/polyfill/fullscreen.js +++ b/lib/polyfill/fullscreen.js @@ -49,7 +49,7 @@ shaka.polyfill.Fullscreen.install = function() { proto.msExitFullscreen || proto.webkitExitFullscreen; - if (!document.fullscreenElement) { + if (!('fullscreenElement' in document)) { Object.defineProperty(document, 'fullscreenElement', { get: function() { return document.mozFullScreenElement ||