mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Refactor BaseUrl string conversion
We're only using this as a string, so no need to convert it to an URL.
This commit is contained in:
+2
-2
@@ -94,8 +94,8 @@ export function formatEditedCaption(
|
||||
} edited ${absoluteTimestamp(timestamp)}`;
|
||||
}
|
||||
|
||||
export function baseUrlToUrl(baseUrl: BaseUrl): URL {
|
||||
return new URL(`${baseUrl.scheme}://${baseUrl.hostname}:${baseUrl.port}`);
|
||||
export function baseUrlToString(baseUrl: BaseUrl): string {
|
||||
return `${baseUrl.scheme}://${baseUrl.hostname}:${baseUrl.port}`;
|
||||
}
|
||||
|
||||
// Generates a publicly shareable link.
|
||||
|
||||
Reference in New Issue
Block a user