Don't require captions toggle button to be enabled in order to show captions

This commit is contained in:
Albin Larsson
2018-04-17 18:56:58 +02:00
parent 88d766aeae
commit 6d79b8cd4c
2 changed files with 2 additions and 7 deletions

View File

@@ -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;
}