From 3eaf57912a96413f4b5b11fa23c53da53ad1e31c Mon Sep 17 00:00:00 2001 From: Heidi Date: Mon, 15 Jun 2026 09:03:42 +0100 Subject: [PATCH] ai generated solutions to our ai generated problems --- frontend/index.html | 4 +--- frontend/src/App.jsx | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 4749f4b..e47bd2f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -12,6 +12,7 @@ +
- diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index dc140c1..12a5309 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -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)