Fix logout

This commit is contained in:
Midgard 2021-02-17 17:13:15 +01:00
parent 422b4a6312
commit 023d95d725
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -10,7 +10,7 @@ function populateServerSelectionList() {
const logoutButton = document.createElement("button");
logoutButton.className = "logout";
logoutButton.innerText = "Log out";
logoutButton.addEventListener("click", e => logOut(endpoint, e.currentTarget));
logoutButton.addEventListener("click", e => logOut(server.endpoint, e.currentTarget));
li.appendChild(logoutButton);
nodes.push(li);