mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
fix(player): use paddedMins for videos less than an hour
This commit is contained in:
parent
dfbaac8e93
commit
22a2ebac74
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ function formatSeconds(secs: number, showHours = false): string {
|
|||
const paddedSecs = seconds.toString().padStart(2, "0");
|
||||
const paddedMins = minutes.toString().padStart(2, "0");
|
||||
|
||||
if (!showHours) return [minutes, paddedSecs].join(":");
|
||||
if (!showHours) return [paddedMins, paddedSecs].join(":");
|
||||
return [hours, paddedMins, paddedSecs].join(":");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue