aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/captions.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/captions.js')
-rw-r--r--src/js/captions.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/js/captions.js b/src/js/captions.js
index 0db755ac..ed1dab8b 100644
--- a/src/js/captions.js
+++ b/src/js/captions.js
@@ -43,20 +43,13 @@ const captions = {
// Inject the container
if (!utils.is.htmlElement(this.elements.captions)) {
- this.elements.captions = utils.createElement(
- 'div',
- utils.getAttributesFromSelector(this.config.selectors.captions)
- );
+ this.elements.captions = utils.createElement('div', utils.getAttributesFromSelector(this.config.selectors.captions));
utils.insertAfter(this.elements.captions, this.elements.wrapper);
}
// Set the class hook
- utils.toggleClass(
- this.elements.container,
- this.config.classNames.captions.enabled,
- !utils.is.empty(captions.getTracks.call(this))
- );
+ utils.toggleClass(this.elements.container, this.config.classNames.captions.enabled, !utils.is.empty(captions.getTracks.call(this)));
// If no caption file exists, hide container for caption text
if (utils.is.empty(captions.getTracks.call(this))) {