From 7353a2ac0d4b94e5780c4eaf6597720570fa4343 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 5 May 2022 09:03:37 -0400 Subject: [PATCH] Fix extra requests being made --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index da36eb0c..e789a048 100644 --- a/src/content.ts +++ b/src/content.ts @@ -292,7 +292,7 @@ function resetValues() { async function videoIDChange(id) { //if the id has not changed return unless the video element has changed - if (sponsorVideoID === id && isVisible(video)) return; + if (sponsorVideoID === id && (isVisible(video) || !video)) return; //set the global videoID sponsorVideoID = id;