diff options
author | Sam Potts <sam@potts.es> | 2018-04-11 23:44:44 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-04-11 23:44:44 +1000 |
commit | ab393651ecd3a68f720524574360c38637015ed6 (patch) | |
tree | 87b8b3fc489be47eaabe64705909955bee284d1f /src/js/plyr.js | |
parent | 2374d6b1c46b6d2e9c172e1573d6e6f93919391c (diff) | |
parent | ffd265d0ae5fc146cb56aa1f99026fd2f98ff529 (diff) | |
download | plyr-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.js | 2 |
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) { |