manifold/web/get-manalink-url.ts

4 lines
120 B
TypeScript
Raw Normal View History

export default function getManalinkUrl(slug: string) {
return `${location.protocol}//${location.host}/link/${slug}`
}