From 5bc3cfa4666840676c2049dc8863bce1b52de32d Mon Sep 17 00:00:00 2001 From: AiHaibara <166741903+jyx04@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:37:02 +0800 Subject: [PATCH] Update free_worker.js --- free_worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/free_worker.js b/free_worker.js index 4ad4757..9400455 100644 --- a/free_worker.js +++ b/free_worker.js @@ -396,7 +396,7 @@ if (cookies) { async function verifyTurnstile(responseToken) { - const removeTurnstile = KV.get('RemoveTurnstile')||''; + const removeTurnstile = await KV.get('RemoveTurnstile')||''; if (removeTurnstile){return 'true'} const verifyUrl = 'https://challenges.cloudflare.com/turnstile/v0/siteverify'; const secretKey = await KV.get('TurnstileKeys'); @@ -889,7 +889,7 @@ if (cookies) { const WorkerURL=await KV.get('WorkerURL'); const turnstileSiteKey=await KV.get('TurnstileSiteKey'); const websiteName = await KV.get('FreeWebName') || await KV.get('WebName') || 'Haibara AI'; - const removeTurnstile = KV.get('RemoveTurnstile')||''; + const removeTurnstile = await KV.get('RemoveTurnstile')||''; return ` <!DOCTYPE html> <html lang="en">