14 lines
258 B
TypeScript
14 lines
258 B
TypeScript
const getResponse = () => {
|
|
const turnstileElement = document.getElementById("turnstile-widget");
|
|
|
|
if (turnstileElement) {
|
|
return window?.turnstile?.getResponse(turnstileElement);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
export default {
|
|
getResponse
|
|
}
|