From 9e19b526b913663de0be6f2abdd5674c608c5eef Mon Sep 17 00:00:00 2001 From: Albin Larsson Date: Thu, 26 Apr 2018 17:51:14 +0200 Subject: Only add hideControls class if config.hideControls is truthy --- src/js/plyr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3 From 72a71a605b2afe2df60a7fee178d3fc9e483d17d Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 27 Apr 2018 20:06:14 +1000 Subject: Fix for default timestamp --- src/js/controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/controls.js b/src/js/controls.js index 4404da65..7ddcefef 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -331,7 +331,7 @@ const controls = { const container = utils.createElement('div', utils.extend(attributes, { class: `plyr__time ${attributes.class}`, 'aria-label': i18n.get(type, this.config), - }), '0:00'); + }), '00:00'); // Reference for updates this.elements.display[type] = container; -- cgit v1.2.3