diff --git a/src/content.ts b/src/content.ts index f18202c7..d9d018ab 100644 --- a/src/content.ts +++ b/src/content.ts @@ -517,7 +517,7 @@ function startSponsorSchedule(includeIntersectingSegments: boolean = false, curr */ function incorrectVideoIDCheck(): boolean { let currentVideoID = getYouTubeVideoID(document.URL); - if (currentVideoID == sponsorVideoID) { + if (currentVideoID !== sponsorVideoID) { // 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); @@ -525,9 +525,9 @@ function incorrectVideoIDCheck(): boolean { // Video ID change occured videoIDChange(currentVideoID); - return false; - } else { return true; + } else { + return false; } }