Last active
January 16, 2017 02:16
-
-
Save JustinDFuller/70167eaf10104a2c12778bf77c446b6c to your computer and use it in GitHub Desktop.
Stopping copying
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
const modifyCopy = e => { | |
e.clipboardData.setData('text/plain', 'Please don\'t copy our work!'); | |
e.preventDefault(); | |
}; | |
document.addEventListener('copy', modifyCopy); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment