add changelog and logout functionality
This commit is contained in:
parent
f20d1cc74b
commit
5f516f71f9
4 changed files with 48 additions and 1 deletions
9
static/scripts/logout.js
Normal file
9
static/scripts/logout.js
Normal 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 = "/";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue