-
-
Save alexiglesias93/6a53936ed8820542f38781b7341d0e68 to your computer and use it in GitHub Desktop.
Get From Webflow
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
document.addEventListener('copy', ({ clipboardData }) => { | |
const webflowData = clipboardData.getData('application/json'); | |
const type = 'text/plain'; | |
const blob = new Blob([webflowData], { type }); | |
const data = [ | |
new ClipboardItem({ | |
[type]: blob, | |
}), | |
]; | |
navigator.clipboard.write(data); | |
console.log(webflowData); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment