mirror of
https://github.com/movie-web/movie-web.git
synced 2025-09-13 18:13:24 +00:00
fix(player): use paddedMins for videos less than an hour
This commit is contained in:
@@ -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(":");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user