mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Eslint got hands
This commit is contained in:
parent
62c97b0507
commit
ab09968afb
2 changed files with 3 additions and 2 deletions
|
@ -91,7 +91,8 @@ export function WorkerTestPart() {
|
||||||
const error = err as Error;
|
const error = err as Error;
|
||||||
error.message = error.message.replace(worker.url, "WORKER_URL");
|
error.message = error.message.replace(worker.url, "WORKER_URL");
|
||||||
if (
|
if (
|
||||||
error.message === '[Cloudflare Turnstile] Invalid or missing type for parameter "sitekey", expected "string", got "object".'
|
error.message ===
|
||||||
|
'[Cloudflare Turnstile] Invalid or missing type for parameter "sitekey", expected "string", got "object".'
|
||||||
) {
|
) {
|
||||||
updateWorker(worker.id, {
|
updateWorker(worker.id, {
|
||||||
id: worker.id,
|
id: worker.id,
|
||||||
|
|
|
@ -111,7 +111,7 @@ export function TurnstileProvider(props: {
|
||||||
>
|
>
|
||||||
<Turnstile
|
<Turnstile
|
||||||
sitekey={siteKey}
|
sitekey={siteKey}
|
||||||
theme={"light"}
|
theme="light"
|
||||||
onLoad={(widgetId, bound) => {
|
onLoad={(widgetId, bound) => {
|
||||||
idRef.current = widgetId;
|
idRef.current = widgetId;
|
||||||
setTurnstile(widgetId, bound, !!props.isInPopout);
|
setTurnstile(widgetId, bound, !!props.isInPopout);
|
||||||
|
|
Loading…
Reference in a new issue