Skip to content

Commit c72b3b1

Browse files
committed
init
1 parent de0a198 commit c72b3b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

assets/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ function grade(payload) {
2121
$.ajax({
2222
method: 'POST',
2323
url: 'tbd',
24-
data: payload
24+
dataType: 'json',
25+
contentType: 'application/json',
26+
data: JSON.stringify(payload)
2527
})
2628
.done((res) => { console.log(res); })
2729
.catch((err) => { console.log(err); });

0 commit comments

Comments
 (0)