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/2dc7d8d3e6f756f3fcf4e68582f84d7e7efab73c/src/lib/utils/share.ts
- Command line
-
hf download hf://spaces/BetterAPI/BetterChat@2dc7d8d3e6f756f3fcf4e68582f84d7e7efab73c/src/lib/utils/share.ts
-
curl -L -o share.ts https://huggingface.co/spaces/BetterAPI/BetterChat/resolve/2dc7d8d3e6f756f3fcf4e68582f84d7e7efab73c/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); | |
| } | |
| } | |