generated from partypages/party-template
Compare commits
1 Commits
309db89f59
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97f3dfa6d4 |
@@ -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