mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 23:47:04 +03:00
Formatting changes
This commit is contained in:
@@ -1589,14 +1589,14 @@ function getLatestEndTimeIndex(sponsorTimes: SponsorTime[], index: number, hideH
|
||||
return index;
|
||||
}
|
||||
|
||||
let latestEndTimeIndex;
|
||||
let latestEndTimeIndex = -1;
|
||||
// Default to looped chapter if its end would have been skipped
|
||||
if (loopedChapter
|
||||
&& (loopedChapter.segment[0] > sponsorTimes[index].segment[0]
|
||||
&& loopedChapter.segment[0] <= sponsorTimes[index]?.segment[1])){
|
||||
latestEndTimeIndex = sponsorTimes.length - 1;
|
||||
} else {
|
||||
// or the normal end time otherwise
|
||||
// or the normal end time otherwise
|
||||
latestEndTimeIndex = index;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user