Fix extra requests being made

This commit is contained in:
Ajay
2022-05-05 09:03:37 -04:00
parent 5e733fddad
commit 7353a2ac0d

View File

@@ -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;