ai generated solutions to our ai generated problems

This commit is contained in:
2026-06-15 09:03:42 +01:00
parent 5bd8cab0ce
commit 3eaf57912a
2 changed files with 6 additions and 5 deletions
+1 -3
View File
@@ -12,6 +12,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#e82517" />
<meta name="tss-turnstile-session" content="__TURNSTILE_SESSION__" />
<meta
name="description"
content="__SEO_DESCRIPTION__"
@@ -55,9 +56,6 @@
</head>
<body>
<div id="root"></div>
<script>
window.__TSS_TURNSTILE_SESSION__ = "__TURNSTILE_SESSION__"
</script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
+5 -2
View File
@@ -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)