mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-04-04 06:32:03 +00:00
9 lines
297 B
JavaScript
9 lines
297 B
JavaScript
const params = new URLSearchParams(window.location.search)
|
|
if (params.has("status")) {
|
|
params.delete("status")
|
|
params.delete("message")
|
|
history.replaceState(null, "", "?" + params.toString())
|
|
}
|
|
|
|
document.getElementById("restore-link").addEventListener("click", event => event.preventDefault())
|