mirror of
https://github.com/videojs/video.js.git
synced 2024-12-21 01:39:04 +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) {
|
||||
if (Array.isArray(start)) {
|
||||
return createTimeRangesObj(start);
|
||||
} else if (start === undefined || end === undefined) {
|
||||
} if (start === undefined || end === undefined) {
|
||||
return createTimeRangesObj();
|
||||
}
|
||||
return createTimeRangesObj([[start, end]]);
|
||||
|
Loading…
Reference in New Issue
Block a user