Added basic settings support.

You can edit relays, embed options, and sign out. This moves the signout
button from the nav to the settings area.
This commit is contained in:
Thomas Mathews 2022-12-29 21:56:06 -08:00
parent 9a3361750e
commit e3b31af127
12 changed files with 198 additions and 40 deletions

View file

@ -163,14 +163,6 @@ function close_reply() {
modal.classList.add("closed");
}
async function press_logout() {
if (confirm("Are you sure you want to sign out?")) {
localStorage.clear();
await dbclear();
window.location.reload();
}
}
function delete_post_confirm(evid) {
if (!confirm("Are you sure you want to delete this post?"))
return;