mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
Refactor createTimeRanges in utils/time.js
This commit is contained in:
parent
dee5402aa5
commit
4610a2f520
@ -141,7 +141,7 @@ function createTimeRangesObj(ranges) {
|
|||||||
export function createTimeRanges(start, end) {
|
export function createTimeRanges(start, end) {
|
||||||
if (Array.isArray(start)) {
|
if (Array.isArray(start)) {
|
||||||
return createTimeRangesObj(start);
|
return createTimeRangesObj(start);
|
||||||
} else if (start === undefined || end === undefined) {
|
} if (start === undefined || end === undefined) {
|
||||||
return createTimeRangesObj();
|
return createTimeRangesObj();
|
||||||
}
|
}
|
||||||
return createTimeRangesObj([[start, end]]);
|
return createTimeRangesObj([[start, end]]);
|
||||||
|
Loading…
Reference in New Issue
Block a user