mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
clarify comment
This commit is contained in:
@@ -930,7 +930,7 @@ class PreviewBar {
|
|||||||
return this.videoDuration * (showLarger ? 0.006 : 0.003);
|
return this.videoDuration * (showLarger ? 0.006 : 0.003);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Name used for cache
|
// Name parameter used for cache
|
||||||
private getSmallestSegment(timeInSeconds: number, segments: PreviewBarSegment[], name?: string): PreviewBarSegment | null {
|
private getSmallestSegment(timeInSeconds: number, segments: PreviewBarSegment[], name?: string): PreviewBarSegment | null {
|
||||||
const proposedIndex = name ? this.lastSmallestSegment[name]?.index : null;
|
const proposedIndex = name ? this.lastSmallestSegment[name]?.index : null;
|
||||||
const startSearchIndex = proposedIndex && segments[proposedIndex] === this.lastSmallestSegment[name].segment ? proposedIndex : 0;
|
const startSearchIndex = proposedIndex && segments[proposedIndex] === this.lastSmallestSegment[name].segment ? proposedIndex : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user