mirror of
https://github.com/bitwarden/web
synced 2025-12-14 15:23:14 +00:00
Do not call parent if callback given (#1123)
(cherry picked from commit 919af717b9)
This commit is contained in:
@@ -84,9 +84,10 @@ async function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function captchaSuccess(response: string) {
|
function captchaSuccess(response: string) {
|
||||||
success(response);
|
|
||||||
if (callbackUri) {
|
if (callbackUri) {
|
||||||
document.location.replace(callbackUri + '?token=' + encodeURIComponent(response));
|
document.location.replace(callbackUri + '?token=' + encodeURIComponent(response));
|
||||||
|
} else {
|
||||||
|
success(response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user