chore(sfc-playground): fix clipboard usage
This commit is contained in:
parent
24a90abeda
commit
117a61bc17
@ -39,8 +39,8 @@ import { downloadProject } from './download/download'
|
|||||||
|
|
||||||
const commit = __COMMIT__
|
const commit = __COMMIT__
|
||||||
|
|
||||||
function copyLink() {
|
async function copyLink() {
|
||||||
navigator.clipboard.writeText(location.href)
|
await navigator.clipboard.writeText(location.href)
|
||||||
alert('Sharable URL has been copied to clipboard.')
|
alert('Sharable URL has been copied to clipboard.')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user