Display wrapper security errors and fix Firefox navigation blank pages

This commit is contained in:
shortcutme 2018-03-06 12:01:21 +01:00
parent 3e970df09b
commit e96dd14e0d
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -16,9 +16,19 @@
</noscript>
<script>
// If we are inside iframe escape from it
if (window.self !== window.top) window.open(window.location.toString(), "_top");
if (window.self !== window.top || window.opener) window.stop();
if ((window.self !== window.top || window.opener) && document.execCommand) document.execCommand("Stop", false)
if (window.self !== window.top) {
window.open(window.location.toString(), "_top");
document.write("Escaping from iframe...");
window.stop();
document.execCommand("Stop", false);
}
// We are opened as a parent-window
else if (window.opener && window.opener.location.toString()) {
document.write("Opened as child-window, stopping...");
window.stop();
document.execCommand("Stop", false);
}
</script>
<div class="progressbar">