From dd5ed6ce421fd98ba994814ceb786790c2dea706 Mon Sep 17 00:00:00 2001 From: Rafael <15365765+rafern@users.noreply.github.com> Date: Wed, 13 May 2020 17:45:08 +0100 Subject: [PATCH] Remove duplicate code --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 241d1ac8..89fed5ec 100644 --- a/src/content.ts +++ b/src/content.ts @@ -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;