Candle/anmelden.js

9 lines
277 B
JavaScript

document.getElementById("anmeldebutton").addEventListener("mousedown", Redirect);
function Redirect() {
sessionStorage.setItem("loggedIn", "true")
window.location = sessionStorage.getItem("clicked-last")
sessionStorage.removeItem("clicked-last")
return true
}