Don't add escaping iframe message for link without target=_top
This commit is contained in:
parent
fe739fa848
commit
995d87c167
1 changed files with 0 additions and 1 deletions
|
@ -20,7 +20,6 @@
|
||||||
// If we are inside iframe escape from it
|
// If we are inside iframe escape from it
|
||||||
if (window.self !== window.top) {
|
if (window.self !== window.top) {
|
||||||
window.open(window.location.toString().replace(/([&?])wrapper=False/, "$1").replace(/&$/, "").replace(/[&?]wrapper_nonce=[A-Za-z0-9]+/, ""), "_top");
|
window.open(window.location.toString().replace(/([&?])wrapper=False/, "$1").replace(/&$/, "").replace(/[&?]wrapper_nonce=[A-Za-z0-9]+/, ""), "_top");
|
||||||
document.write("Escaping from iframe...");
|
|
||||||
window.stop();
|
window.stop();
|
||||||
document.execCommand("Stop", false);
|
document.execCommand("Stop", false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue