chore(sfc-playground): fix clipboard usage

This commit is contained in:
Evan You 2021-03-29 10:54:32 -04:00
parent 24a90abeda
commit 117a61bc17

View File

@ -39,8 +39,8 @@ import { downloadProject } from './download/download'
const commit = __COMMIT__
function copyLink() {
navigator.clipboard.writeText(location.href)
async function copyLink() {
await navigator.clipboard.writeText(location.href)
alert('Sharable URL has been copied to clipboard.')
}
</script>