Skip to content

Commit 117a61b

Browse files
committed
chore(sfc-playground): fix clipboard usage
1 parent 24a90ab commit 117a61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sfc-playground/src/Header.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import { downloadProject } from './download/download'
3939
4040
const commit = __COMMIT__
4141
42-
function copyLink() {
43-
navigator.clipboard.writeText(location.href)
42+
async function copyLink() {
43+
await navigator.clipboard.writeText(location.href)
4444
alert('Sharable URL has been copied to clipboard.')
4545
}
4646
</script>

0 commit comments

Comments
 (0)