Stop page load if opener is present

This commit is contained in:
shortcutme 2018-02-21 03:11:50 +01:00
parent 01ce86ce18
commit aef3ecc3f2
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -17,9 +17,8 @@
<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.stop();
if (window.self !== window.top && document.execCommand) document.execCommand("Stop", false)
if (window.self !== window.top || window.opener) window.stop();
if ((window.self !== window.top || window.opener) && document.execCommand) document.execCommand("Stop", false)
</script>
<div class="progressbar">