Adrien Denat
Fix share not working on iOS (#150)
2804c18 unverified
raw
history blame
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);
}
}