mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Change how chapter views are counted
This commit is contained in:
parent
3222afd8b4
commit
f3818c2066
1 changed files with 0 additions and 6 deletions
|
@ -2362,16 +2362,10 @@ function getSegmentsMessage(sponsorTimes: SponsorTime[]): string {
|
|||
}
|
||||
|
||||
function updateActiveSegment(currentTime: number): void {
|
||||
const activeSegments = previewBar?.updateChapterText(sponsorTimes, sponsorTimesSubmitting, currentTime);
|
||||
chrome.runtime.sendMessage({
|
||||
message: "time",
|
||||
time: currentTime
|
||||
});
|
||||
|
||||
const chapterSegments = activeSegments?.filter((segment) => segment.actionType === ActionType.Chapter);
|
||||
if (chapterSegments?.length > 0) {
|
||||
sendTelemetryAndCount(chapterSegments, 0, true);
|
||||
}
|
||||
}
|
||||
|
||||
function nextChapter(): void {
|
||||
|
|
Loading…
Reference in a new issue