compartir enlace correctamente

This commit is contained in:
Cat /dev/Nulo 2023-03-25 23:45:44 +00:00
parent 1943c829f1
commit ea8eefb896

View file

@ -16,7 +16,8 @@
await navigator.clipboard.writeText(await joinWorldLink());
}
async function shareJoinWorldLink() {
await navigator.clipboard.writeText(await joinWorldLink());
const link = await joinWorldLink();
await navigator.share({ url: link });
}
const canShare = "share" in navigator;