Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
huggingchat/chat-ui
SoSa123456
/
chat-ui
like
0
Build error
App
Files
Files
Community
54abee8
chat-ui
/
src
/
lib
/
utils
/
share.ts
Adrien Denat
Fix share not working on iOS (#150)
2804c18
unverified
over 1 year ago
raw
Copy download link
history
blame
Safe
175 Bytes
export
function
share
(
url:
string
, title:
string
) {
if
(navigator.
share
) {
navigator.
share
({ url, title });
}
else
{
prompt
(
"Copy this public url to share:"
, url);
}
}