Captions fix

This commit is contained in:
Sam Potts
2017-11-05 18:57:22 +11:00
parent 60084a17f8
commit 374de800a4
4 changed files with 5 additions and 5 deletions

View File

@@ -566,7 +566,7 @@ class Plyr {
// Toggle captions
toggleCaptions(input) {
// If there's no full support, or there's no caption toggle
if (!this.supported.ui || !this.elements.buttons.captions) {
if (!this.supported.ui || !utils.is.htmlElement(this.elements.buttons.captions)) {
return this;
}