Merge pull request #1550 from mchangrh/stricter-ts

add noFallThrough, inplicitReturn, update packages
This commit is contained in:
Ajay Ramachandran
2022-11-04 17:06:36 -04:00
committed by GitHub
12 changed files with 1300 additions and 1734 deletions

View File

@@ -67,9 +67,11 @@ 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;
}
});
//make this a function to allow this to run on the content page