diff options
| author | bobzel <zzzman@gmail.com> | 2021-08-23 15:03:44 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-08-23 15:03:44 -0400 |
| commit | 61420d03c48d67913cd85571088dd31ac88fbb5a (patch) | |
| tree | a8a8e7bc919692a0e5576cb4a00fd6fd50cf5da8 /src/Utils.ts | |
| parent | 529e1cdb46a3af4fc44ad2bff6afd879fd1558ad (diff) | |
cleaned up videobox controls along with option to switch to native controls. changed placement of link buttons in lightbox to be outside of document
Diffstat (limited to 'src/Utils.ts')
| -rw-r--r-- | src/Utils.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 194c38a6f..f251f776c 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -390,8 +390,7 @@ export function formatTime(time: number) { const hours = Math.floor(time / 60 / 60); const minutes = Math.floor(time / 60) - (hours * 60); const seconds = time % 60; - - return hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0') + ':' + seconds.toString().padStart(2, '0'); + return (hours ? hours.toString() + ":" : "") + minutes.toString().padStart(2, '0') + ':' + seconds.toString().padStart(2, '0'); } export function aggregateBounds(boundsList: { x: number, y: number, width?: number, height?: number }[], xpad: number, ypad: number) { |
