Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
feat(header): add heafder
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Sep 10, 2024
1 parent 7b5be0e commit bf68141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ elm_toggle.addEventListener("change", () => {

elm_save.addEventListener("click", () => {
if (token !== null) {
let xhr = new XMLHttpRequest();
let xhr = new XMLHttpRequest()

xhr.onreadystatechange = function () {
console.log(xhr.response);

}
xhr.setRequestHeader('Content-type', 'application/json');
xhr.open("POST", APP_URL + "/api/v1/verify_token");
xhr.setRequestHeader('Content-type', 'application/json');
xhr.send(JSON.stringify({
token: token
}));
Expand Down

0 comments on commit bf68141

Please sign in to comment.