mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-09-20 04:53:43 +02:00
clarify comment
This commit is contained in:
parent
f59665cccb
commit
a5d91c9b57
1 changed files with 1 additions and 1 deletions
|
@ -930,7 +930,7 @@ class PreviewBar {
|
|||
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 {
|
||||
const proposedIndex = name ? this.lastSmallestSegment[name]?.index : null;
|
||||
const startSearchIndex = proposedIndex && segments[proposedIndex] === this.lastSmallestSegment[name].segment ? proposedIndex : 0;
|
||||
|
|
Loading…
Reference in a new issue