Spaces:
Runtime error
Runtime error
Download src/lib/utils/share.ts from BetterAPI/BetterChat: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/BetterAPI/BetterChat/resolve/0592f207c0819df96caa4eb96d1dd79bee3392ad/src/lib/utils/share.ts
- Command line
-
hf download hf://spaces/BetterAPI/BetterChat@0592f207c0819df96caa4eb96d1dd79bee3392ad/src/lib/utils/share.ts
-
curl -L -o share.ts https://huggingface.co/spaces/BetterAPI/BetterChat/resolve/0592f207c0819df96caa4eb96d1dd79bee3392ad/src/lib/utils/share.ts
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); | |
| } | |
| } | |