aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-04-11 23:44:44 +1000
committerSam Potts <sam@potts.es>2018-04-11 23:44:44 +1000
commitab393651ecd3a68f720524574360c38637015ed6 (patch)
tree87b8b3fc489be47eaabe64705909955bee284d1f /src/js/plyr.js
parent2374d6b1c46b6d2e9c172e1573d6e6f93919391c (diff)
parentffd265d0ae5fc146cb56aa1f99026fd2f98ff529 (diff)
downloadplyr-ab393651ecd3a68f720524574360c38637015ed6.tar.lz
plyr-ab393651ecd3a68f720524574360c38637015ed6.tar.xz
plyr-ab393651ecd3a68f720524574360c38637015ed6.zip
Merge branch 'master' of github.com:sampotts/plyr
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 6be0d2cc..04a68d02 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -845,7 +845,7 @@ class Plyr {
}
// If the method is called without parameter, toggle based on current value
- const show = utils.is.boolean(input) ? input : this.elements.container.className.indexOf(this.config.classNames.captions.active) === -1;
+ const show = utils.is.boolean(input) ? input : !this.elements.container.classList.contains(this.config.classNames.captions.active);
// Nothing to change...
if (this.captions.active === show) {