Skip to content

Instantly share code, notes, and snippets.

@anishkny
Last active October 1, 2020 15:30
Show Gist options
  • Save anishkny/e3c657f9e9743bad049f428e3e2f1541 to your computer and use it in GitHub Desktop.
Save anishkny/e3c657f9e9743bad049f428e3e2f1541 to your computer and use it in GitHub Desktop.
Allow copy paste in webpage
document.addEventListener('paste', function (e) { e.stopImmediatePropagation(); return true; }, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment