Do not call parent if callback given (#1123)

This commit is contained in:
Matt Gibson 2021-08-12 18:01:18 -04:00 committed by GitHub
parent b9b20bc36b
commit 919af717b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -84,9 +84,10 @@ async function start() {
}
function captchaSuccess(response: string) {
success(response);
if (callbackUri) {
document.location.replace(callbackUri + '?token=' + encodeURIComponent(response));
} else {
success(response);
}
}