From c9c768c3cbf88e31b02b09cc6cb53535c64541de Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Wed, 27 Apr 2022 14:03:48 -0700 Subject: [PATCH] handle servers without auth endpoint --- resources/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/index.js b/resources/js/index.js index fdece6c..743eb58 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -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 }