Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rahon6000 committed Oct 8, 2023
1 parent 22eb73a commit 715a862
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PF/ColorSense/js/generateColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 715a862

Please sign in to comment.