aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index d9450f95..1cff4231 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -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;
}