mirror of https://github.com/sussy-code/smov.git
Update turnstiles and pray
This commit is contained in:
parent
384cc43936
commit
78b9e042d0
|
@ -20,7 +20,10 @@ export interface OverlayProps {
|
|||
function TurnstileInteractive() {
|
||||
const { t } = useTranslation();
|
||||
const [show, setShow] = useState(false);
|
||||
getTurnstile();
|
||||
|
||||
useEffect(() => {
|
||||
getTurnstile();
|
||||
}, []);
|
||||
|
||||
// this may not rerender with different dom structure, must be exactly the same always
|
||||
return (
|
||||
|
|
|
@ -101,7 +101,7 @@ export function TurnstileProvider(props: {
|
|||
isInPopout?: boolean;
|
||||
onUpdateShow?: (show: boolean) => void;
|
||||
}) {
|
||||
const siteKey = conf().TURNSTILE_KEY;
|
||||
const siteKey = conf().TURNSTILE_KEY?.toString();
|
||||
const idRef = useRef<string | null>(null);
|
||||
const setTurnstile = useTurnstileStore((s) => s.setTurnstile);
|
||||
const processToken = useTurnstileStore((s) => s.processToken);
|
||||
|
|
Loading…
Reference in New Issue