1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 09:53:17 +00:00

Update msToTime.js

This commit is contained in:
MatteZ02 2020-02-10 21:54:40 +02:00
parent 5351d74226
commit b776997c38

View File

@ -10,7 +10,6 @@ module.exports = function msToTime(duration, format) {
seconds = (seconds < 10) ? "0" + seconds : seconds; seconds = (seconds < 10) ? "0" + seconds : seconds;
if (format === "hh:mm:ss") { if (format === "hh:mm:ss") {
console.log(format)
return `${hours}:${minutes}:${seconds}`; return `${hours}:${minutes}:${seconds}`;
} else if (format === "dd:hh:mm:ss") { } else if (format === "dd:hh:mm:ss") {
return `${days}:${hours}:${minutes}:${seconds}`; return `${days}:${hours}:${minutes}:${seconds}`;