Skip to content

Commit

Permalink
fix: use of local captcha condition
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Nov 21, 2024
1 parent e6b34a8 commit 2024b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/tokenscript-viewer/src/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class AppRoot {
tlinkRequestAdapter: async (data: TLinkRequest) => {

// Recaptcha requests can be processed here if it's not a tlink embedded view or tlink is using a window instead of an iframe
if (this.viewerType.indexOf("tlink") === -1 && window.opener){
if (this.viewerType.indexOf("tlink") === -1 || window.opener){

if (data.method === "getRecaptchaToken"){
const recaptchaRequest = data.payload as { siteKey?: string, action?: string }
Expand Down

0 comments on commit 2024b4d

Please sign in to comment.