aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-04-27 00:47:51 +1000
committerSam Potts <sam@potts.es>2018-04-27 00:47:51 +1000
commita812650fea4b61878a50b0a1cc09c5043fbe815e (patch)
tree88996b3bd1bf6d8eef9ee4f5b977eb260a06862b /src/js/ui.js
parentfec7a77d6ffa0ac450d5513661dc292f430ad7ba (diff)
downloadplyr-a812650fea4b61878a50b0a1cc09c5043fbe815e.tar.lz
plyr-a812650fea4b61878a50b0a1cc09c5043fbe815e.tar.xz
plyr-a812650fea4b61878a50b0a1cc09c5043fbe815e.zip
v3.2.4
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index 1d671577..ee77a2dd 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -48,11 +48,6 @@ const ui = {
this.listeners.controls();
}
- // If there's no controls, bail
- if (!utils.is.element(this.elements.controls)) {
- return;
- }
-
// Remove native controls
ui.toggleNativeControls.call(this);
@@ -277,10 +272,10 @@ const ui = {
}
// Always display hours if duration is over an hour
- const displayHours = utils.getHours(this.duration) > 0;
+ const forceHours = utils.getHours(this.duration) > 0;
// eslint-disable-next-line no-param-reassign
- target.textContent = utils.formatTime(time, displayHours, inverted);
+ target.textContent = utils.formatTime(time, forceHours, inverted);
},
// Handle time change event