aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.polyfilled.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-04-18 18:34:59 +1000
committerSam Potts <sam@potts.es>2018-04-18 18:34:59 +1000
commitd2e9ed346700d885d723412b5e44889f23f8509f (patch)
tree21040dee3a1b9242800e0384d9b748a9f3de79d3 /dist/plyr.polyfilled.js
parent5b39986835e9b5d0932e3e9f491f4ca3a320629c (diff)
downloadplyr-d2e9ed346700d885d723412b5e44889f23f8509f.tar.lz
plyr-d2e9ed346700d885d723412b5e44889f23f8509f.tar.xz
plyr-d2e9ed346700d885d723412b5e44889f23f8509f.zip
Merge
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r--dist/plyr.polyfilled.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js
index 364d9ce2..f13fb8f1 100644
--- a/dist/plyr.polyfilled.js
+++ b/dist/plyr.polyfilled.js
@@ -8036,7 +8036,7 @@ var Fullscreen = function () {
get: function get() {
// No prefix
if (utils.is.function(document.exitFullscreen)) {
- return false;
+ return '';
}
// Check for fullscreen support by vendor prefix
@@ -8348,11 +8348,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');
@@ -12969,8 +12964,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;
}