"use strict"; window.addEventListener("load", function() { document.getElementById("logout-button").addEventListener("click", logout); }); function logout() { window.localStorage.removeItem('token'); window.location.replace("/html/auth.html"); }