add changelog and logout functionality

This commit is contained in:
insects 2025-02-07 15:35:44 +01:00
parent f20d1cc74b
commit 5f516f71f9
4 changed files with 48 additions and 1 deletions

9
static/scripts/logout.js Normal file
View file

@ -0,0 +1,9 @@
// Removes the local storage entry, and redirects to the index page.
const ls = window.localStorage;
if (ls.getItem("beacon:account-id")) {
console.log("a");
ls.removeItem("beacon:account-id");
window.location.pathname = "/";
} else {
window.location.pathname = "/";
}