ai generated solutions to our ai generated problems
This commit is contained in:
+1
-3
@@ -12,6 +12,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="theme-color" content="#e82517" />
|
<meta name="theme-color" content="#e82517" />
|
||||||
|
<meta name="tss-turnstile-session" content="__TURNSTILE_SESSION__" />
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="__SEO_DESCRIPTION__"
|
content="__SEO_DESCRIPTION__"
|
||||||
@@ -55,9 +56,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script>
|
|
||||||
window.__TSS_TURNSTILE_SESSION__ = "__TURNSTILE_SESSION__"
|
|
||||||
</script>
|
|
||||||
<script type="module" src="/src/main.jsx"></script>
|
<script type="module" src="/src/main.jsx"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -793,9 +793,12 @@ function SiteGate({ onVerified }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
const embeddedGateState = document
|
||||||
|
.querySelector('meta[name="tss-turnstile-session"]')
|
||||||
|
?.getAttribute('content')
|
||||||
const initialGateState = turnstileSiteKey
|
const initialGateState = turnstileSiteKey
|
||||||
? ['verified', 'required'].includes(window.__TSS_TURNSTILE_SESSION__)
|
? ['verified', 'required'].includes(embeddedGateState)
|
||||||
? window.__TSS_TURNSTILE_SESSION__
|
? embeddedGateState
|
||||||
: 'checking'
|
: 'checking'
|
||||||
: 'verified'
|
: 'verified'
|
||||||
const [gateState, setGateState] = useState(initialGateState)
|
const [gateState, setGateState] = useState(initialGateState)
|
||||||
|
|||||||
Reference in New Issue
Block a user