mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-29 22:00:56 +03:00
Don't show empty chapter bar for youtube chapters in popup
This commit is contained in:
@@ -498,7 +498,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
|
|||||||
//display the video times from the array at the top, in a different section
|
//display the video times from the array at the top, in a different section
|
||||||
function displayDownloadedSponsorTimes(sponsorTimes: SponsorTime[], time: number) {
|
function displayDownloadedSponsorTimes(sponsorTimes: SponsorTime[], time: number) {
|
||||||
let currentSegmentTab = segmentTab;
|
let currentSegmentTab = segmentTab;
|
||||||
if (!sponsorTimes.some((segment) => segment.actionType === ActionType.Chapter)) {
|
if (!sponsorTimes.some((segment) => segment.actionType === ActionType.Chapter && segment.source !== SponsorSourceType.YouTube)) {
|
||||||
PageElements.issueReporterTabs.classList.add("hidden");
|
PageElements.issueReporterTabs.classList.add("hidden");
|
||||||
currentSegmentTab = SegmentTab.Segments;
|
currentSegmentTab = SegmentTab.Segments;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user