Remove duplicate code

This commit is contained in:
Rafael 2020-05-13 17:45:08 +01:00 committed by GitHub
parent 3a0d5221f6
commit dd5ed6ce42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -469,7 +469,7 @@ function startSponsorSchedule(includeIntersectingSegments: boolean = false, curr
cancelSponsorSchedule();
// Don't skip if advert playing and reset last checked time
if (document.getElementsByClassName('ad-showing').length > 0) {
if (isAdPlaying) {
// Reset lastCheckVideoTime
lastCheckVideoTime = -1;
lastCheckTime = 0;