Compare commits
No commits in common. "62156a1049a23db87686cd74d0ae367ff90db61a" and "9fe067ec5aab232b76cf407bfecd0b8550f98c84" have entirely different histories.
62156a1049
...
9fe067ec5a
1 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,7 @@ function copyInvite(type: "link" | "code") {
|
||||||
if (!invite.value) return;
|
if (!invite.value) return;
|
||||||
|
|
||||||
if (type == "link") {
|
if (type == "link") {
|
||||||
const runtimeConfig = useRuntimeConfig();
|
const inviteUrl = URL.parse(`invite/${invite.value}`, `${window.location.protocol}//${window.location.host}`);
|
||||||
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