diff options
author | Ajay Ramachandran <[email protected]> | 2020-05-17 00:00:08 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-17 00:00:08 -0400 |
commit | 45d20574d9524e77171fe94dcf00891cd5c30a62 (patch) | |
tree | 0730371aba6be8f8be9e21c830036513e7cf8889 /src/content.ts | |
parent | c011ad105d7e2694a1be47e83b5ec4918413a215 (diff) | |
parent | 252da8c56afea294ca2f49585b2353c52fa86611 (diff) | |
download | SponsorBlock-45d20574d9524e77171fe94dcf00891cd5c30a62.tar.gz SponsorBlock-45d20574d9524e77171fe94dcf00891cd5c30a62.zip |
Merge pull request #356 from ajayyy/react1.2.28.4
Fix preview sponsors not skipping
Diffstat (limited to 'src/content.ts')
-rw-r--r-- | src/content.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index d4badbbe..50ec0ec8 100644 --- a/src/content.ts +++ b/src/content.ts @@ -532,7 +532,7 @@ function startSponsorSchedule(includeIntersectingSegments: boolean = false, curr */ function incorrectVideoCheck(videoID?: string, sponsorTime?: SponsorTime): boolean { let currentVideoID = getYouTubeVideoID(document.URL); - if (currentVideoID !== (videoID || sponsorVideoID) || (sponsorTime && !sponsorTimes.includes(sponsorTime))) { + if (currentVideoID !== (videoID || sponsorVideoID) || (sponsorTime && (!sponsorTimes || !sponsorTimes.includes(sponsorTime)) && !sponsorTimesSubmitting.includes(sponsorTime))) { // Something has really gone wrong console.error("[SponsorBlock] The videoID recorded when trying to skip is different than what it should be."); console.error("[SponsorBlock] VideoID recorded: " + sponsorVideoID + ". Actual VideoID: " + currentVideoID); |