Last active
August 26, 2017 01:41
-
-
Save uoziod/b69fa6aa3dbab6371169 to your computer and use it in GitHub Desktop.
Prevent page unloading in Google Chrome (useful with cyclic redirects debugging)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("beforeunload", function() { debugger; }, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment