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