Captcha gateway provide postMessage for better compability

This commit is contained in:
LittleSheep 2025-03-23 16:15:34 +08:00
parent c7f3c1b2cc
commit 105ec693f8

View File

@ -86,6 +86,7 @@
}
function onSuccess(token) {
window.parent.postMessage("captcha_tk=" + token, "*");
const redirectUri = getQueryParam("redirect_uri");
if (redirectUri) {
window.location.href = `${redirectUri}?captcha_tk=${encodeURIComponent(token)}`;