Skip to content

Commit

Permalink
chore: use local recaptcha rather than tlink when available
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Nov 20, 2024
1 parent 235dd39 commit 4b0a9e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/tokenscript-viewer/src/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ export class AppRoot {
// Recaptcha requests can be processed here
if (this.viewerType.indexOf("tlink") === -1){

/*if (data.method === "getRecaptchaToken"){
if (data.method === "getRecaptchaToken"){
const recaptchaRequest = data.payload as { siteKey?: string, action?: string }
return {
...data,
response: await getRecaptchaToken(recaptchaRequest.siteKey, recaptchaRequest.action)
};
}*/
}

if (data.method === "getTurnstileToken"){
const turnstileRequest = data.payload as { siteKey?: string }
Expand Down

0 comments on commit 4b0a9e4

Please sign in to comment.