1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

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;
error.message = error.message.replace(worker.url, "WORKER_URL");
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, {
id: worker.id,

View file

@ -111,7 +111,7 @@ export function TurnstileProvider(props: {
>
<Turnstile
sitekey={siteKey}
theme={"light"}
theme="light"
onLoad={(widgetId, bound) => {
idRef.current = widgetId;
setTurnstile(widgetId, bound, !!props.isInPopout);