(httpUrl: string)
| 30 | * @returns The sc-domain formatted URL. |
| 31 | */ |
| 32 | export function convertToSCDomain(httpUrl: string) { |
| 33 | return `sc-domain:${httpUrl.replace("http://", "").replace("https://", "").replace("/", "")}`; |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Converts a domain to an HTTP URL. |