static/urlgen: use dynamc hostname

This commit is contained in:
Astro 2023-01-11 18:50:28 +01:00
parent 610e3732c5
commit f95cd5c97d
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
setTimeout(function() {
var value = encodeURIComponent(inputEl.value.replace(/^#/, ""));
preEl.innerText = value ?
"https://relay.fedi.buzz/" + id + "/" + value :
"https://" + document.location.host + "/" + id + "/" + value :
"";
}, 10);
}