diff options
author | Albin Larsson <mail@albinlarsson.com> | 2018-04-17 18:56:58 +0200 |
---|---|---|
committer | Albin Larsson <mail@albinlarsson.com> | 2018-04-17 18:59:19 +0200 |
commit | 6d79b8cd4cb3b256ee5616ffc196c87cf74bf6f8 (patch) | |
tree | cff60b24e2d60c8d8a46f567e2f71e7efde331ea /src/js/plyr.js | |
parent | 88d766aeae6084dccd1903c2c358b8d1dfdfbce0 (diff) | |
download | plyr-6d79b8cd4cb3b256ee5616ffc196c87cf74bf6f8.tar.lz plyr-6d79b8cd4cb3b256ee5616ffc196c87cf74bf6f8.tar.xz plyr-6d79b8cd4cb3b256ee5616ffc196c87cf74bf6f8.zip |
Don't require captions toggle button to be enabled in order to show captions
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 181b4bf3..111742f8 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -845,8 +845,8 @@ class Plyr { * @param {boolean} input - Whether to enable captions */ 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; } |