4 ms·
This is a great tip, thanks! Using it to store this snippet which invokes the debugger when something tries to redirect you from the page, allowing you to insp
by tommyd 11y ago
This is a great tip, thanks!
Using it to store this snippet which invokes the debugger when something tries to redirect you from the page, allowing you to inspect the state and any network requests (last time I checked, "preserve log on navigation" was buggy and didn't preserve all details of the request from a previous page):
window.addEventListener("beforeunload", function() { debugger; }, false)