You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
338 B
9 lines
338 B
import { brand } from './brand.mjs';
|
|
|
|
/** Use the public HTTPS address in production and the current origin for local previews. */
|
|
export function invitationUrl(code, currentOrigin, production) {
|
|
const url = new URL('/', production ? brand.invitationOrigin : currentOrigin);
|
|
url.searchParams.set('invite', code);
|
|
return url.href;
|
|
}
|