1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-04-04 06:32:03 +00:00
bibliogram/src/site/html/static/js/settings_message.js
2020-06-19 19:12:43 +12:00

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())