We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e56256f commit efea8feCopy full SHA for efea8fe
plugins/browser-plugin-media-tracking/src/helperFunctions.ts
@@ -53,7 +53,7 @@ type TimeRange = { start: number; end: number };
53
export function timeRangesToObjectArray(t: TimeRanges): TimeRange[] {
54
const out: TimeRange[] = [];
55
for (let i = 0; i < t.length; i++) {
56
- out.push({ start: t.start(i), end: t.end(i) });
+ out.push({ start: t.start(i) || 0, end: t.end(i) || 0 });
57
}
58
return out;
59
0 commit comments