web: delete db on sign out

This commit is contained in:
Thomas Mathews 2022-12-22 08:02:53 -08:00
parent 5d4e8e7ac4
commit 48ebf9c978
2 changed files with 28 additions and 2 deletions

View file

@ -158,9 +158,10 @@ function close_reply() {
modal.classList.add("closed");
}
function press_logout() {
async function press_logout() {
if (confirm("Are you sure you want to sign out?")) {
localStorage.clear();
await dbclear();
window.location.href = url.toString()
}
}