mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Change how chapter views are counted
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user