ai generated solutions to our ai generated problems
This commit is contained in:
@@ -793,9 +793,12 @@ function SiteGate({ onVerified }) {
|
||||
}
|
||||
|
||||
function App() {
|
||||
const embeddedGateState = document
|
||||
.querySelector('meta[name="tss-turnstile-session"]')
|
||||
?.getAttribute('content')
|
||||
const initialGateState = turnstileSiteKey
|
||||
? ['verified', 'required'].includes(window.__TSS_TURNSTILE_SESSION__)
|
||||
? window.__TSS_TURNSTILE_SESSION__
|
||||
? ['verified', 'required'].includes(embeddedGateState)
|
||||
? embeddedGateState
|
||||
: 'checking'
|
||||
: 'verified'
|
||||
const [gateState, setGateState] = useState(initialGateState)
|
||||
|
||||
Reference in New Issue
Block a user