Skip to content

Commit 87c4758

Browse files
committed
Fix upcoming notice being shown for disabled categories
Fixes ajayyy#2296
1 parent 07cd292 commit 87c4758

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ async function startSponsorSchedule(includeIntersectingSegments = false, current
816816
if (Config.config.showUpcomingNotice && getCurrentTime() < skippingSegments[0].segment[0]
817817
&& !sponsorTimesSubmitting?.some((segment) => segment.segment === currentSkip.segment)
818818
&& [ActionType.Skip, ActionType.Mute].includes(skippingSegments[0].actionType)
819+
&& getCategorySelection(skippingSegments[0])?.option > CategorySkipOption.ShowOverlay
819820
&& !getVideo()?.paused) {
820821
const maxPopupTime = 3000;
821822
const timeUntilPopup = Math.max(0, offsetDelayTime - maxPopupTime);

0 commit comments

Comments
 (0)