aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/js-components/previewBar.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-10-05 15:39:51 -0400
committerAjay <[email protected]>2022-10-05 15:39:51 -0400
commit03cd1b535b570ea7e4db374b38ba0cc891a4a55d (patch)
tree8dfbb02bc5062a4e72a23560c1e2499911a5c0c9 /src/js-components/previewBar.ts
parent8cc3843adabdadfbc2cd177cfe8a5aaae063a8fc (diff)
downloadSponsorBlock-03cd1b535b570ea7e4db374b38ba0cc891a4a55d.tar.gz
SponsorBlock-03cd1b535b570ea7e4db374b38ba0cc891a4a55d.zip
Count skips for chapters when viewed
Diffstat (limited to 'src/js-components/previewBar.ts')
-rw-r--r--src/js-components/previewBar.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts
index 1f1098ce..49b3676d 100644
--- a/src/js-components/previewBar.ts
+++ b/src/js-components/previewBar.ts
@@ -719,7 +719,7 @@ class PreviewBar {
}
}
- updateChapterText(segments: SponsorTime[], submittingSegments: SponsorTime[], currentTime: number): void {
+ updateChapterText(segments: SponsorTime[], submittingSegments: SponsorTime[], currentTime: number): SponsorTime[] {
if (!Config.config.showSegmentNameInChapterBar
|| ((!segments || segments.length <= 0) && submittingSegments?.length <= 0)) {
const chaptersContainer = this.getChaptersContainer();
@@ -740,6 +740,7 @@ class PreviewBar {
});
this.setActiveSegments(activeSegments);
+ return activeSegments;
}
/**