mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fixed incorrect videoID check being in reverse.
This commit is contained in:
parent
4131442066
commit
0b90539372
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue