ignore if token invalidation fails

This commit is contained in:
creeper123123321 2021-05-23 15:31:56 -03:00 committed by GitHub
parent 6799f39e1c
commit 72d82eaad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,12 +57,7 @@ function logoutMojang(id) {
headers: {"content-type": "application/json"} headers: {"content-type": "application/json"}
}) })
.then(checkFetchSuccess("not success logout")) .then(checkFetchSuccess("not success logout"))
.then(data => removeMcAccount(id)) .finally(() => removeMcAccount(id));
.catch(e => {
if (confirm("failed to invalidate token! error: " + e + " remove account?")) {
removeMcAccount(id);
}
});
}); });
} }