remove refer when logged in
All checks were successful
Validate / Validate (push) Successful in 9s

This commit is contained in:
SimonFJ20 2024-09-26 00:53:49 +02:00
parent fca54b30dd
commit 1ccb1d0e7c

View File

@ -23,6 +23,9 @@ document.querySelector("#login").onsubmit = async (event) => {
window.location.pathname = "/";
return;
}
window.location.pathname = decodeURIComponent(params.get("refer"));
const refer = decodeURIComponent(params.get("refer"));
params.delete("refer")
window.location.search = params.toString();
window.location.pathname = refer;
};