chore: merge master

This commit is contained in:
Timothy Lin
2021-08-07 23:57:14 +08:00
3 changed files with 10 additions and 5 deletions

View File

@ -14,7 +14,7 @@ const Pre = (props) => {
}
const onCopy = () => {
setCopied(true)
navigator.clipboard.writeText(textInput.current.textContent)
navigator.clipboard.writeText(textInput.current.innerText)
setTimeout(() => {
setCopied(false)
}, 2000)