Add comment

This commit is contained in:
NDevTK
2022-05-19 23:17:18 +01:00
committed by Ajay
parent a7956aacf9
commit bfadb1373a

View File

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