static/urlgen: use dynamc hostname

This commit is contained in:
Astro 2023-01-11 18:50:28 +01:00
parent 610e3732c5
commit f95cd5c97d

View file

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