add comment

This commit is contained in:
notmd
2023-01-29 20:42:23 +07:00
parent d456cffc4a
commit a7ff5e5f21
+1
View File
@@ -40,6 +40,7 @@ export const checkCaptcha = async (
};
};
// This function hasn't been tested yet, Cloudflare doesn't send `action` and `cdata` with a demo key.
const getSuccess = (response: CheckCaptchaResponse, action: string | undefined, cdata: string | undefined) => {
if (action === undefined && cdata === undefined) {
return response.success;