Closed r15ch13 closed 1 year ago
Thanks for the info about the deprecated command. I switched to the new writeText() API and this new version is available on https://scoop.sh/scoopinstaller-dev.github.io but I need to run some extra checks before deploying to https://scoop.sh
Could you give it a try on your side?
Works great 👍🏽
Deployed to https://scoop.sh. 🚀 Thanks again
Since
document.execCommand('copy')
seems to be deprecated shouldn't it usenavigator.clipboard.writeText()
instead for copying commands?Could
writeText()
handle the state of the copy button?I tried to fiddle around with it but I don't get how exactly data flows in React. (never used it)