Fix padRight not exist

This commit is contained in:
the1812 2019-01-17 12:19:53 +08:00
parent 82b598d67f
commit 744d394ac1
4 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -339,7 +339,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
function round(number)
{
const [integer, decimal = "00"] = String(number).split(".");
return `${integer.padStart(2, "0")}.${decimal.substr(0, 2).padRight(2, "0")}`;
return `${integer.padStart(2, "0")}.${decimal.substr(0, 2).padEnd(2, "0")}`;
}
function secondsToTime(seconds)
{