From 0b9053937234574674da5cc2c7e01a9caf51b404 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 24 Apr 2020 21:28:08 -0400 Subject: [PATCH] Fixed incorrect videoID check being in reverse. --- src/content.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }