Display auth button

This commit is contained in:
Vitaly 2025-06-22 15:18:51 +03:00 committed by GitHub
commit 332bd4e0f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,6 +127,7 @@ export default () => {
}, [])
const displayAuthButton = status.includes('This server appears to be an online server and you are providing no authentication.')
|| JSON.stringify(minecraftJsonMessage ?? {}).toLowerCase().includes("authenticate")
const hasVpnText = (text: string) => text.includes('VPN') || text.includes('Proxy')
const displayVpnButton = hasVpnText(status) || (minecraftJsonMessage && hasVpnText(JSON.stringify(minecraftJsonMessage)))
const authReconnectAction = async () => {