Fixing padStart IE11 incompatibility
This commit is contained in:
@@ -40,9 +40,8 @@ export function getSecondsAsHHMMSS(totalSeconds: Number) {
|
|||||||
msStr = '.' + msStr.split('.')[1];
|
msStr = '.' + msStr.split('.')[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return hours.toString().padStart(2, '0') + ':' +
|
return (hours + ':' + minutes + ':' + seconds).replace(/\b\d\b/g,
|
||||||
minutes.toString().padStart(2, '0') + ':' +
|
'0$&') + msStr;
|
||||||
seconds.toString().padStart(2, '0') + msStr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user