Skip to content

Instantly share code, notes, and snippets.

@avernet
Created November 28, 2023 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avernet/578fd47383aff254d6d023c649813938 to your computer and use it in GitHub Desktop.
Save avernet/578fd47383aff254d6d023c649813938 to your computer and use it in GitHub Desktop.
Breaking on calls to `fetch()`
(function() {
const originalFetch = window.fetch;
window.fetch = function(...args) {
debugger;
return originalFetch.apply(this, args);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment