diff options
author | Sam Potts <me@sampotts.me> | 2017-11-05 18:57:22 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2017-11-05 18:57:22 +1100 |
commit | 374de800a4d092a5636466aa4cec4f1c5eb3a0c6 (patch) | |
tree | c74e8b0f012c327910048854b947de6d379de1b0 /src/js/captions.js | |
parent | 60084a17f8de59fac9452d79dda13b124a12f2b2 (diff) | |
download | plyr-374de800a4d092a5636466aa4cec4f1c5eb3a0c6.tar.lz plyr-374de800a4d092a5636466aa4cec4f1c5eb3a0c6.tar.xz plyr-374de800a4d092a5636466aa4cec4f1c5eb3a0c6.zip |
Captions fix
Diffstat (limited to 'src/js/captions.js')
-rw-r--r-- | src/js/captions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/captions.js b/src/js/captions.js index 36a1775b..2673d1d2 100644 --- a/src/js/captions.js +++ b/src/js/captions.js @@ -189,7 +189,7 @@ const captions = { // Display captions container and button (for initialization) show() { // If there's no caption toggle, bail - if (!this.elements.buttons.captions) { + if (!utils.is.htmlElement(this.elements.buttons.captions)) { return; } @@ -198,7 +198,7 @@ const captions = { // Otherwise fall back to the default config if (!utils.is.boolean(active)) { - ({ active } = this.captions); + ({ active } = this.config.captions); } else { this.captions.active = active; } |