web: delete db on sign out
This commit is contained in:
parent
5d4e8e7ac4
commit
48ebf9c978
2 changed files with 28 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue