mirror of https://github.com/sussy-code/smov.git
Disable auto refresh.
This commit is contained in:
parent
5da2161bb9
commit
346829f38e
|
@ -176,6 +176,7 @@ const root = createRoot(container!);
|
|||
root.render(
|
||||
<StrictMode>
|
||||
<ErrorBoundary>
|
||||
<TurnstileProvider />
|
||||
<HelmetProvider>
|
||||
<Suspense fallback={<LoadingScreen type="lazy" />}>
|
||||
<ExtensionStatus />
|
||||
|
|
|
@ -77,6 +77,7 @@ export async function getTurnstileToken() {
|
|||
const turnstile = getTurnstile();
|
||||
try {
|
||||
const token = await useTurnstileStore.getState().getToken();
|
||||
|
||||
reportCaptchaSolve(true);
|
||||
return token;
|
||||
} catch (err) {
|
||||
|
@ -103,7 +104,7 @@ export function TurnstileProvider(props: {
|
|||
<Turnstile
|
||||
siteKey={siteKey}
|
||||
options={{
|
||||
refreshExpired: "auto",
|
||||
refreshExpired: "never",
|
||||
theme: "light",
|
||||
}}
|
||||
onWidgetLoad={(widgetId) => {
|
||||
|
|
Loading…
Reference in New Issue