Skip to content

Commit

Permalink
web/flows: fix invisible captcha call (#12048)
Browse files Browse the repository at this point in the history
* fix invisible captcha call

* fix invisible captcha DOM removal
  • Loading branch information
gergosimonyi authored Nov 15, 2024
1 parent 7e88913 commit 891094e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/flow/stages/captcha/CaptchaStage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeRe
super.disconnectedCallback();
window.removeEventListener("message", this.messageCallback);
if (!this.challenge.interactive) {
document.removeChild(this.captchaDocumentContainer);
document.body.removeChild(this.captchaDocumentContainer);
}
}

Expand Down Expand Up @@ -173,7 +173,7 @@ export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeRe
.forEach((el) => el.remove());
document.head.appendChild(this.scriptElement);
if (!this.challenge.interactive) {
document.appendChild(this.captchaDocumentContainer);
document.body.appendChild(this.captchaDocumentContainer);
}
}
}
Expand Down

0 comments on commit 891094e

Please sign in to comment.