From e10cb6795e40a48521131780e9b14ab4d86c8c70 Mon Sep 17 00:00:00 2001 From: "Georgy.Khatuncev" Date: Sat, 21 Sep 2024 00:39:24 +0500 Subject: [PATCH] Fix errors --- scripts/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);