add noFallThrough, inplicitReturn, update packages

This commit is contained in:
Michael C
2022-10-20 22:13:51 -04:00
parent aec5845bce
commit 1fcfea9fd5
12 changed files with 1301 additions and 1733 deletions

View File

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