Do not hardcode server name in Javascript files

This commit is contained in:
Vojtěch Káně
2026-10-04 12:23:25 +02:00
parent 62364b219b
commit 19cc468f83
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ document.addEventListener("touchmove", (e) => {
});
function sendNudge(x, y) {
fetch("http://localhost:8080", {
fetch("/", {
method: "POST",
headers: {"Content-Type": "application/json"},
referrer: "no-referrer",