mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +01:00
ignore if token invalidation fails
This commit is contained in:
parent
6799f39e1c
commit
72d82eaad3
@ -57,12 +57,7 @@ function logoutMojang(id) {
|
||||
headers: {"content-type": "application/json"}
|
||||
})
|
||||
.then(checkFetchSuccess("not success logout"))
|
||||
.then(data => removeMcAccount(id))
|
||||
.catch(e => {
|
||||
if (confirm("failed to invalidate token! error: " + e + " remove account?")) {
|
||||
removeMcAccount(id);
|
||||
}
|
||||
});
|
||||
.finally(() => removeMcAccount(id));
|
||||
});
|
||||
}
|
||||
|
||||
@ -164,4 +159,4 @@ function isMojang(it) {
|
||||
|
||||
function isNotMojang(it) {
|
||||
return !isMojang(it);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user