Merge branch 'master' of github.com:sampotts/plyr

This commit is contained in:
Sam Potts
2018-04-18 18:29:50 +10:00
3 changed files with 3 additions and 8 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;
}