Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/core/admin/js
File: frame-helpers.js
/* ,-,-
[0] Fix | Delete
/ / |
[1] Fix | Delete
,-' _/ / /
[2] Fix | Delete
(-_ _,-' `Z_/
[3] Fix | Delete
"#: ,-'_,-. \ _
[4] Fix | Delete
#' _(_-'_()\ \" |
[5] Fix | Delete
,--_,--' |
[6] Fix | Delete
/ "" L-'\
[7] Fix | Delete
\,--^---v--v-._ / \ |
[8] Fix | Delete
\_________________,-' |
[9] Fix | Delete
\
[10] Fix | Delete
\
[11] Fix | Delete
\
[12] Fix | Delete
NOTE: The code in this file will be executed multiple times! */
[13] Fix | Delete
[14] Fix | Delete
let top_window = window;
[15] Fix | Delete
let is_iframe = false;
[16] Fix | Delete
let top;
[17] Fix | Delete
[18] Fix | Delete
try {
[19] Fix | Delete
// Have to access top window's prop (document) to trigger same-origin DOMException
[20] Fix | Delete
// so we can catch it and act accordingly.
[21] Fix | Delete
top = window.top.document ? window.top : false;
[22] Fix | Delete
} catch(e) {
[23] Fix | Delete
// Can't access top, it means we're inside a different domain iframe.
[24] Fix | Delete
top = false;
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
if (top && top.__Cypress__) {
[28] Fix | Delete
if (window.parent === top) {
[29] Fix | Delete
top_window = window;
[30] Fix | Delete
is_iframe = false;
[31] Fix | Delete
[32] Fix | Delete
} else {
[33] Fix | Delete
top_window = window.parent;
[34] Fix | Delete
is_iframe = true;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
} else if (top) {
[38] Fix | Delete
top_window = top;
[39] Fix | Delete
is_iframe = top !== window.self;
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
export {
[43] Fix | Delete
top_window,
[44] Fix | Delete
is_iframe,
[45] Fix | Delete
};
[46] Fix | Delete
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function