generated from partypages/party-template
This commit is contained in:
@@ -224,7 +224,7 @@ export const PartyUI: React.FC<{ party: ResponseCreateParty, adminToken: string,
|
|||||||
const url = `https://${party.name}.party.leafbla.de/${user.token}`;
|
const url = `https://${party.name}.party.leafbla.de/${user.token}`;
|
||||||
const template = document.getElementById("template");
|
const template = document.getElementById("template");
|
||||||
if (template instanceof HTMLTextAreaElement && template.value.trim() !== "") {
|
if (template instanceof HTMLTextAreaElement && template.value.trim() !== "") {
|
||||||
const pattern = template.value.replace("%URL", url);;
|
const pattern = template.value.replace("%URL", url).replace("%NAME", user.name);
|
||||||
navigator.clipboard.writeText(pattern);
|
navigator.clipboard.writeText(pattern);
|
||||||
} else {
|
} else {
|
||||||
navigator.clipboard.writeText(url);
|
navigator.clipboard.writeText(url);
|
||||||
|
|||||||
Reference in New Issue
Block a user