diff options
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; } |