From 715a8625d8436902244fdfa32653553744c0f2a5 Mon Sep 17 00:00:00 2001 From: rahon6000-surface Date: Sun, 8 Oct 2023 20:38:06 +0900 Subject: [PATCH] fix typo --- PF/ColorSense/js/generateColor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PF/ColorSense/js/generateColor.js b/PF/ColorSense/js/generateColor.js index 4a360b06a20e..8885494c6626 100644 --- a/PF/ColorSense/js/generateColor.js +++ b/PF/ColorSense/js/generateColor.js @@ -67,8 +67,8 @@ function getAverage() { xHttp.onreadystatechange = function () { if (xHttp.readyState == xHttp.DONE) { // should be 4? Done is 4. if (xHttp.status == 200) { // 200:"OK", 403:"Forbidden", 404:"Not Found"... - console.log("score data sent."); - } else { console.log("fail to send score.") } + console.log("score data recieved."); + } else { console.log("fail to GET average score.") } } }; xHttp.open("GET", "https://rahon.dev/reqav"); @@ -111,7 +111,7 @@ function showResult() { elapse : (finTime - initTime) }; xmlHttp.open("POST", "https://rahon.dev/send"); - xmlHttp.setRequestHeader("Contetn-Type", "application/json"); + xmlHttp.setRequestHeader("Content-Type", "application/json"); xmlHttp.send(JSON.stringify(sendObj)); } function adjustingSlider(sidx) {