remove refer
All checks were successful
Validate / Validate (push) Successful in 8s

This commit is contained in:
SimonFJ20 2024-09-26 01:08:10 +02:00
parent 833af735cf
commit bbab76bc7f

View File

@ -25,7 +25,10 @@ document.querySelector("#login").onsubmit = async (event) => {
}
const refer = decodeURIComponent(params.get("refer"));
params.delete("refer")
window.location.search = params.toString();
window.location.pathname = refer;
if (params.size === 0) {
window.location.pathname = refer;
return;
}
window.location = `${refer}?${params.toString()}`;
};