mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 03:57:09 +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 {
|
function updateActiveSegment(currentTime: number): void {
|
||||||
const activeSegments = previewBar?.updateChapterText(sponsorTimes, sponsorTimesSubmitting, currentTime);
|
|
||||||
chrome.runtime.sendMessage({
|
chrome.runtime.sendMessage({
|
||||||
message: "time",
|
message: "time",
|
||||||
time: currentTime
|
time: currentTime
|
||||||
});
|
});
|
||||||
|
|
||||||
const chapterSegments = activeSegments?.filter((segment) => segment.actionType === ActionType.Chapter);
|
|
||||||
if (chapterSegments?.length > 0) {
|
|
||||||
sendTelemetryAndCount(chapterSegments, 0, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function nextChapter(): void {
|
function nextChapter(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user