Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
huggingchat/chat-ui
adowu
/
chat-aww
like
0
Build error
App
Files
Files
Community
9d877b2
chat-aww
/
src
/
lib
/
utils
/
share.ts
Mishig
Update share behaviour (#645)
c208e39
unverified
8 months ago
raw
Copy download link
history
blame
No virus
176 Bytes
export
async
function
share
(
url:
string
, title:
string
) {
if
(navigator.
share
) {
navigator.
share
({ url, title });
}
else
{
await
navigator.
clipboard
.
writeText
(url);
}
}