handle servers without auth endpoint

This commit is contained in:
SpikeHD 2022-04-27 14:03:48 -07:00
parent 71c3cc7837
commit c9c768c3cb

View File

@ -298,7 +298,7 @@ async function openLogin() {
// Check if we even need to authenticate
const { data } = await axios.get(url + '/grasscutter/auth_status')
if (data.message !== 'AUTH_ENABLED') {
if (data?.message !== 'AUTH_ENABLED') {
launchPrivate()
return
}