try to fix resetting

This commit is contained in:
creeper123123321 2021-05-24 19:36:06 -03:00 committed by GitHub
parent 1b2ad525df
commit b63511c912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ function loginMc(user, pass) {
.then(data => { .then(data => {
storeMcAccount(data.accessToken, data.clientToken, data.selectedProfile.name, data.selectedProfile.id); storeMcAccount(data.accessToken, data.clientToken, data.selectedProfile.name, data.selectedProfile.id);
}).catch(e => addToast("Failed to login", e)); }).catch(e => addToast("Failed to login", e));
$("#form_add_mc input").trigger("reset"); $("#form_add_mc input")[0].reset();
} }
function logoutMojang(id) { function logoutMojang(id) {