Created
February 23, 2020 19:53
-
-
Save rohitdatta/8d9834f0eaf09a8a3273a1ca4264826f to your computer and use it in GitHub Desktop.
Don't fuck with paste
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var allowPaste = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allowPaste, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment