Display auth button
This commit is contained in:
parent
32b19ab7af
commit
332bd4e0f3
1 changed files with 1 additions and 0 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue