Commit 0f95ad5d authored by Henrik Tramberend's avatar Henrik Tramberend

One less warning

parent 41d61eb6
......@@ -378,7 +378,11 @@ function buildInterface(api, initialToken, publicUrl) {
updateComments();
} else {
api
.getLogin({login: username.value, password: password.value})
.getLogin({
login: username.value,
password: password.value,
deck: publicUrl || deckId()
})
.then(token => {
serverToken.admin = token.admin;
login.classList.add("admin");
......@@ -387,7 +391,7 @@ function buildInterface(api, initialToken, publicUrl) {
credentials.classList.remove("visible");
updateComments();
})
.catch(e => {
.catch(_ => {
password.value = "";
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment