mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
FIx skip to highlight button still showing when highlight disabled
#2292
This commit is contained in:
@@ -1355,7 +1355,9 @@ function startSkipScheduleCheckingForStartSponsors() {
|
|||||||
// For highlight category
|
// For highlight category
|
||||||
const poiSegments = sponsorTimes
|
const poiSegments = sponsorTimes
|
||||||
.filter((time) => time.segment[1] > getCurrentTime()
|
.filter((time) => time.segment[1] > getCurrentTime()
|
||||||
&& time.actionType === ActionType.Poi && time.hidden === SponsorHideType.Visible)
|
&& time.actionType === ActionType.Poi
|
||||||
|
&& time.hidden === SponsorHideType.Visible
|
||||||
|
&& getCategorySelection(time).option !== CategorySkipOption.Disabled)
|
||||||
.sort((a, b) => b.segment[0] - a.segment[0]);
|
.sort((a, b) => b.segment[0] - a.segment[0]);
|
||||||
for (const time of poiSegments) {
|
for (const time of poiSegments) {
|
||||||
const skipOption = getCategorySelection(time)?.option;
|
const skipOption = getCategorySelection(time)?.option;
|
||||||
|
|||||||
Reference in New Issue
Block a user