var -> const

This commit is contained in:
Erik Thuning 2022-11-04 10:55:22 +01:00
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 {