Merge branch 'develop' of github.com:sampotts/plyr into develop

This commit is contained in:
Sam Potts
2020-01-26 22:05:29 +00:00
3 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@ export const getSeconds = value => Math.trunc(value % 60, 10);
export function formatTime(time = 0, displayHours = false, inverted = false) {
// Bail if the value isn't a number
if (!is.number(time)) {
return formatTime(null, displayHours, inverted);
return formatTime(undefined, displayHours, inverted);
}
// Format time component to add leading zero