aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorAlbin Larsson <mail@albinlarsson.com>2018-04-26 17:51:14 +0200
committerAlbin Larsson <mail@albinlarsson.com>2018-04-26 17:51:14 +0200
commit9e19b526b913663de0be6f2abdd5674c608c5eef (patch)
tree192f4426c1bb27edd89e16d991d854b304ec022e /src/js/plyr.js
parenta812650fea4b61878a50b0a1cc09c5043fbe815e (diff)
downloadplyr-9e19b526b913663de0be6f2abdd5674c608c5eef.tar.lz
plyr-9e19b526b913663de0be6f2abdd5674c608c5eef.tar.xz
plyr-9e19b526b913663de0be6f2abdd5674c608c5eef.zip
Only add hideControls class if config.hideControls is truthy
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 36b05082..6daa403a 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1076,8 +1076,8 @@ class Plyr {
utils.toggleClass(this.elements.controls, this.config.classNames.noTransition, false);
}
- // Check if controls toggled
- const toggled = utils.toggleClass(this.elements.container, this.config.classNames.hideControls, true);
+ // Set hideControls class
+ const toggled = utils.toggleClass(this.elements.container, this.config.classNames.hideControls, this.config.hideControls);
// Trigger event and close menu
if (toggled) {