var -> const
This commit is contained in:
parent
0a56ad07b4
commit
a5fe0ee7df
@ -919,10 +919,10 @@
|
||||
* The arg 'time' should be a number of seconds.
|
||||
*/
|
||||
formatTime(time) {
|
||||
var hours = (Math.floor(time / 3600) + '').padStart(2, '0');
|
||||
var minutes = (Math.floor((time % 3600) / 60)
|
||||
+ '').padStart(2, '0');
|
||||
var seconds = (Math.round(time % 60) + '').padStart(2, '0');
|
||||
const hours = (Math.floor(time / 3600) + '').padStart(2, '0');
|
||||
const minutes = (Math.floor((time % 3600) / 60)
|
||||
+ '').padStart(2, '0');
|
||||
const seconds = (Math.round(time % 60) + '').padStart(2, '0');
|
||||
if(this._presentation.duration > 3600) {
|
||||
return hours +':'+ minutes +':'+ seconds;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user