diff options
| author | Morten Vestergaard Hansen <mimo@mimo-design.com> | 2018-06-27 14:33:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-27 14:33:51 +0200 |
| commit | de9b53045aecb34cd6244327f9ccb7116b617e8b (patch) | |
| tree | 537d01d4f367d1948bb75761f771dfe91ab66b12 /src | |
| parent | c41bb657ac490d032f2992845d21a457a7faedf1 (diff) | |
| download | plyr-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')
| -rw-r--r-- | src/js/controls.js | 2 |
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 { |
