mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
Fix status of if segments were found in popup to account for disabled categories
This commit is contained in:
@@ -1193,7 +1193,7 @@ async function sponsorsLookup(keepOldSubmissions = true, ignoreCache = false) {
|
|||||||
const receivedSegments = segmentData.segments;
|
const receivedSegments = segmentData.segments;
|
||||||
|
|
||||||
if (receivedSegments && receivedSegments.length) {
|
if (receivedSegments && receivedSegments.length) {
|
||||||
sponsorDataFound = true;
|
sponsorDataFound = receivedSegments.findIndex((segment) => getCategorySelection(segment).option !== CategorySkipOption.Disabled) !== -1;
|
||||||
|
|
||||||
// Check if any old submissions should be kept
|
// Check if any old submissions should be kept
|
||||||
if (sponsorTimes !== null && keepOldSubmissions) {
|
if (sponsorTimes !== null && keepOldSubmissions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user