Closed torbenbrodt closed 3 years ago
window.frameElement is only available in a friendly iframe (origin of iframe url and parent page are the same)
in an unfriendly iframe an error is thrown, because window.frameElement isn't available.
That's why this check is needed.
Great catch, @torbenbrodt! Thank you.
window.frameElement is only available in a friendly iframe (origin of iframe url and parent page are the same)
in an unfriendly iframe an error is thrown, because window.frameElement isn't available.
That's why this check is needed.