mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
handle servers without auth endpoint
This commit is contained in:
parent
71c3cc7837
commit
c9c768c3cb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user