mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
update HTML for Bearer token update
This commit is contained in:
@@ -80,17 +80,12 @@
|
||||
window.location.href = 'login.html';
|
||||
}
|
||||
response = await fetch(`${API_URL}/persons/me`, {
|
||||
headers: {
|
||||
"Content-type": "application/json; charset=UTF-8",
|
||||
"authorization": token
|
||||
}
|
||||
headers: createHeaders(token)
|
||||
});
|
||||
document.getElementById('editBadge').style.display = 'block'; // show edit button
|
||||
} else {
|
||||
response = await fetch(`${API_URL}/persons/${idToDisplay}/details`, {
|
||||
headers: {
|
||||
"Content-type": "application/json; charset=UTF-8",
|
||||
}
|
||||
headers: createHeaders(null)
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user