Created
March 2, 2017 17:20
-
-
Save xsscx/e8d3452e9861283bffeb6763cb194fd1 to your computer and use it in GitHub Desktop.
Javascript Debugging Break on onhashchange
This file contains 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
['onhashchange', 'onhashchange'].forEach(function (evName) { | |
window.addEventListener(evName, function () { | |
debugger; // Chance to check everything right before the redirect occurs | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment