: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
NOTE: The code in this file will be executed multiple times! */
// Have to access top window's prop (document) to trigger same-origin DOMException
// so we can catch it and act accordingly.
top = window.top.document ? window.top : false;
// Can't access top, it means we're inside a different domain iframe.
if (top && top.__Cypress__) {
if (window.parent === top) {
top_window = window.parent;
is_iframe = top !== window.self;