compartir enlace correctamente
This commit is contained in:
parent
1943c829f1
commit
ea8eefb896
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@
|
||||||
await navigator.clipboard.writeText(await joinWorldLink());
|
await navigator.clipboard.writeText(await joinWorldLink());
|
||||||
}
|
}
|
||||||
async function shareJoinWorldLink() {
|
async function shareJoinWorldLink() {
|
||||||
await navigator.clipboard.writeText(await joinWorldLink());
|
const link = await joinWorldLink();
|
||||||
|
await navigator.share({ url: link });
|
||||||
}
|
}
|
||||||
|
|
||||||
const canShare = "share" in navigator;
|
const canShare = "share" in navigator;
|
||||||
|
|
Loading…
Reference in a new issue