aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
authorMorten Vestergaard Hansen <mimo@mimo-design.com>2018-06-27 14:33:51 +0200
committerGitHub <noreply@github.com>2018-06-27 14:33:51 +0200
commitde9b53045aecb34cd6244327f9ccb7116b617e8b (patch)
tree537d01d4f367d1948bb75761f771dfe91ab66b12 /src/js/controls.js
parentc41bb657ac490d032f2992845d21a457a7faedf1 (diff)
downloadplyr-de9b53045aecb34cd6244327f9ccb7116b617e8b.tar.lz
plyr-de9b53045aecb34cd6244327f9ccb7116b617e8b.tar.xz
plyr-de9b53045aecb34cd6244327f9ccb7116b617e8b.zip
Fixed condition check
If class includes "control" it will add it again.
Diffstat (limited to 'src/js/controls.js')
-rw-r--r--src/js/controls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 3f720925..ddec6581 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -181,7 +181,7 @@ const controls = {
}
if ('class' in attributes) {
- if (attributes.class.includes(this.config.classNames.control)) {
+ if (!attributes.class.includes(this.config.classNames.control)) {
attributes.class += ` ${this.config.classNames.control}`;
}
} else {