(filePath: string)
| 234 | * Share/copy link to clipboard (deep link to current page with file hash) |
| 235 | */ |
| 236 | export async function shareFile(filePath: string): Promise<boolean> { |
| 237 | const deepLinkUrl = `${window.location.origin}${ |
| 238 | window.location.pathname |
| 239 | }#file=${encodeURIComponent(filePath)}`; |
| 240 | return copyToClipboard(deepLinkUrl); |
| 241 | } |
| 242 | |
| 243 | type QueryParamValue = string | string[] | boolean | null | undefined; |
| 244 |
no test coverage detected