frontend/utils/urls.ts
2025-02-14 14:08:21 +01:00

9 lines
217 B
TypeScript

export const wrapUrl = (path: string) => {
return new URL(
path,
identity.value
? `https://${identity.value.instance.domain}`
: window.location.origin,
).toString();
};