From bfadb1373a55125fc8d7876e7f1cae12fdd8604a Mon Sep 17 00:00:00 2001 From: NDevTK <31563761+NDevTK@users.noreply.github.com> Date: Thu, 19 May 2022 23:17:18 +0100 Subject: [PATCH] Add comment --- src/popup.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/popup.ts b/src/popup.ts index e97559cc..32c4424a 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -43,6 +43,7 @@ class MessageHandler { let allowPopup = (window === window.top); +// To prevent clickjacking window.onmessage = async e => { if (e.source !== window.parent) return if (e.origin.endsWith('.youtube.com')) return allowPopup = true;