mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01: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);
|
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;
|
||||||
|
|
Loading…
Reference in a new issue