diff options
author | Sam Potts <sam@potts.es> | 2020-01-26 22:05:29 +0000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-01-26 22:05:29 +0000 |
commit | 0041ea305020f0b4dca998f931d453f1dfea6989 (patch) | |
tree | 57e89ca95961d49ed3871f3b16c7726bcf128adc /src/js/utils/time.js | |
parent | f8a28b632cf12a2c557a766010252b9edd4cdb8e (diff) | |
parent | 9c817cff68f52675ad3eb5f524e30dd9bbacc4f4 (diff) | |
download | plyr-0041ea305020f0b4dca998f931d453f1dfea6989.tar.lz plyr-0041ea305020f0b4dca998f931d453f1dfea6989.tar.xz plyr-0041ea305020f0b4dca998f931d453f1dfea6989.zip |
Merge branch 'develop' of github.com:sampotts/plyr into develop
Diffstat (limited to 'src/js/utils/time.js')
-rw-r--r-- | src/js/utils/time.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/utils/time.js b/src/js/utils/time.js index ffca88b2..17228de5 100644 --- a/src/js/utils/time.js +++ b/src/js/utils/time.js @@ -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 |