use form reset()

This commit is contained in:
creeper123123321 2021-05-24 18:13:59 -03:00 committed by GitHub
parent 2aaf52c520
commit c179264c5a
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 => {
storeMcAccount(data.accessToken, data.clientToken, data.selectedProfile.name, data.selectedProfile.id);
}).catch(e => addToast("Failed to login", e));
$("#form_add_mc input").val("");
$("#form_add_mc input").reset();
}
function logoutMojang(id) {