Skip to content

Instantly share code, notes, and snippets.

@rensjaspers
Created June 12, 2019 17:52
Show Gist options
  • Save rensjaspers/37b6b0e96f36a59ba1ec6db94a3f3b6b to your computer and use it in GitHub Desktop.
Save rensjaspers/37b6b0e96f36a59ba1ec6db94a3f3b6b to your computer and use it in GitHub Desktop.
Disable click event listeners
(()=>{
window.addEventListener("click", event => {
event.stopPropagation();
}, true);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment