diff options
author | Ajay <[email protected]> | 2022-05-05 09:03:37 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-05-05 09:03:37 -0400 |
commit | 7353a2ac0d4b94e5780c4eaf6597720570fa4343 (patch) | |
tree | a4d8eeae939b23f6770d4808723b97676896965d | |
parent | 5e733fddadffaef3a24fab31560c6f8137056b13 (diff) | |
download | SponsorBlock-7353a2ac0d4b94e5780c4eaf6597720570fa4343.tar.gz SponsorBlock-7353a2ac0d4b94e5780c4eaf6597720570fa4343.zip |
Fix extra requests being made
-rw-r--r-- | src/content.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |