diff options
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index 7feafc26..fe62e7d4 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -2102,7 +2102,7 @@ var Fullscreen = function () { get: function get$$1() { // No prefix if (utils.is.function(document.exitFullscreen)) { - return false; + return ''; } // Check for fullscreen support by vendor prefix @@ -2414,11 +2414,6 @@ var captions = { // Display captions container and button (for initialization) show: function show() { - // If there's no caption toggle, bail - if (!utils.is.element(this.elements.buttons.captions)) { - return; - } - // Try to load the value from storage var active = this.storage.get('captions'); @@ -7035,8 +7030,8 @@ var Plyr = function () { * @param {boolean} input - Whether to enable captions */ value: function toggleCaptions(input) { - // If there's no full support, or there's no caption toggle - if (!this.supported.ui || !utils.is.element(this.elements.buttons.captions)) { + // If there's no full support + if (!this.supported.ui) { return; } |