Eslint got hands

This commit is contained in:
Captain Jack Sparrow 2024-06-02 22:44:08 +00:00
parent 62c97b0507
commit ab09968afb
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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);