Skip to content

Commit

Permalink
fixing json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
rahon6000 committed Oct 8, 2023
1 parent 0fc7757 commit 22eb73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PF/ColorSense/js/generateColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function showResult() {
};
xmlHttp.open("POST", "https://rahon.dev/send");
xmlHttp.setRequestHeader("Contetn-Type", "application/json");
xmlHttp.send(sendObj);
xmlHttp.send(JSON.stringify(sendObj));
}
function adjustingSlider(sidx) {
myColor[sidx] = parseInt(sliders[sidx].value);
Expand Down

0 comments on commit 22eb73a

Please sign in to comment.