Update src/popup.ts

Co-authored-by: Ajay Ramachandran <dev@ajay.app>
This commit is contained in:
Michael M. Chang
2022-10-21 01:01:25 -04:00
committed by GitHub
parent 1fcfea9fd5
commit 0610eea53d

View File

@@ -71,9 +71,7 @@ window.addEventListener("message", async (e): Promise<void> => {
if (e.source !== window.parent) return; if (e.source !== window.parent) return;
if (e.origin.endsWith('.youtube.com')) { if (e.origin.endsWith('.youtube.com')) {
allowPopup = true; allowPopup = true;
return
} }
else return;
}); });
//make this a function to allow this to run on the content page //make this a function to allow this to run on the content page