Skip to content

Instantly share code, notes, and snippets.

@marutypes
Created March 29, 2018 17:54
Show Gist options
  • Save marutypes/25ba5baa70a2175c42d99f26f0b08b0a to your computer and use it in GitHub Desktop.
Save marutypes/25ba5baa70a2175c42d99f26f0b08b0a to your computer and use it in GitHub Desktop.
TFW you're debugging event heavy turbograft flows and you just want to know wtf is happening
const de = document.dispatchEvent.bind(document);
document.dispatchEvent = (event) => {
console.log(event.type)
return de(event)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment