Skip to content

Instantly share code, notes, and snippets.

@dbauszus-glx
Created August 22, 2022 07:28
Show Gist options
  • Save dbauszus-glx/937c5f8ebca55186c623c610754f2731 to your computer and use it in GitHub Desktop.
Save dbauszus-glx/937c5f8ebca55186c623c610754f2731 to your computer and use it in GitHub Desktop.
document.dispatchEvent(
new CustomEvent("myPlugin", {
detail: (_xyz) => {
console.log(_xyz)
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment