Merge branch 'main' into permissions-management
This commit is contained in:
commit
62156a1049
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ function copyInvite(type: "link" | "code") {
|
||||||
if (!invite.value) return;
|
if (!invite.value) return;
|
||||||
|
|
||||||
if (type == "link") {
|
if (type == "link") {
|
||||||
const inviteUrl = URL.parse(`invite/${invite.value}`, `${window.location.protocol}//${window.location.host}`);
|
const runtimeConfig = useRuntimeConfig();
|
||||||
|
const inviteUrl = URL.parse(`invite/${invite.value}`, `${window.location.protocol}//${window.location.host}${runtimeConfig.app.baseURL}`);
|
||||||
if (inviteUrl) {
|
if (inviteUrl) {
|
||||||
navigator.clipboard.writeText(inviteUrl.href);
|
navigator.clipboard.writeText(inviteUrl.href);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue