From 92b3cda9efd7a2062baae96448e0a576835cd79a Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 21 Jul 2025 04:00:33 -0400 Subject: [PATCH] Fix status of if segments were found in popup to account for disabled categories --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index c88430dc..3fecfdae 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1193,7 +1193,7 @@ async function sponsorsLookup(keepOldSubmissions = true, ignoreCache = false) { const receivedSegments = segmentData.segments; if (receivedSegments && receivedSegments.length) { - sponsorDataFound = true; + sponsorDataFound = receivedSegments.findIndex((segment) => getCategorySelection(segment).option !== CategorySkipOption.Disabled) !== -1; // Check if any old submissions should be kept if (sponsorTimes !== null && keepOldSubmissions) {