mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
Remove duplicate code
This commit is contained in:
@@ -469,7 +469,7 @@ function startSponsorSchedule(includeIntersectingSegments: boolean = false, curr
|
|||||||
cancelSponsorSchedule();
|
cancelSponsorSchedule();
|
||||||
|
|
||||||
// Don't skip if advert playing and reset last checked time
|
// Don't skip if advert playing and reset last checked time
|
||||||
if (document.getElementsByClassName('ad-showing').length > 0) {
|
if (isAdPlaying) {
|
||||||
// Reset lastCheckVideoTime
|
// Reset lastCheckVideoTime
|
||||||
lastCheckVideoTime = -1;
|
lastCheckVideoTime = -1;
|
||||||
lastCheckTime = 0;
|
lastCheckTime = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user