Skip to content

Commit d313067

Browse files
authored
Fix unnecessary condition in fragment-tracker
1 parent 4361d74 commit d313067

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/controller/fragment-tracker.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ export class FragmentTracker implements ComponentAPI {
8888
if (!activePart) {
8989
break;
9090
}
91-
const appendedPTS = activePart.end;
9291
if (
9392
activePart.start <= position &&
94-
appendedPTS !== null &&
95-
position <= appendedPTS
93+
position <= activePart.end &&
94+
activePart.loaded
9695
) {
9796
return activePart;
9897
}

0 commit comments

Comments
 (0)