diff options
author | Ajay <[email protected]> | 2022-10-05 15:39:51 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-10-05 15:39:51 -0400 |
commit | 03cd1b535b570ea7e4db374b38ba0cc891a4a55d (patch) | |
tree | 8dfbb02bc5062a4e72a23560c1e2499911a5c0c9 /src/js-components/previewBar.ts | |
parent | 8cc3843adabdadfbc2cd177cfe8a5aaae063a8fc (diff) | |
download | SponsorBlock-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.ts | 3 |
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; } /** |