7 lines
193 B
JavaScript
7 lines
193 B
JavaScript
document.getElementById("logoutButton").onclick = async e => {
|
|
console.log("here");
|
|
e.preventDefault();
|
|
localStorage.removeItem("token");
|
|
window.location.href = "login.html"
|
|
};
|