diff --git a/scripts/test.js b/scripts/test.js index 75c0e05..8e9e7e3 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -264,7 +264,7 @@ but6.onclick = function () { } function sendCycleData() { - const url = `${window.location.origin}/currcycles`; + const url = `${window.location.origin}/api/currcycles`; fetch(url, { method: 'POST', }) @@ -293,7 +293,7 @@ function handleLoop() { function PrintDiagram(pechstatus) { const Pech = JSON.parse(pechstatus); ctx.clearRect(0, 0, canvas.width, canvas.height); - cpnst t = new Diagram(0.5, 0.5, canvas.width - 1, canvas.height - 1); + const t = new Diagram(0.5, 0.5, canvas.width - 1, canvas.height - 1); t.BuildDefault(); t.Rotate(chkRotate.checked);