From 105ec693f83f400944088d329e777f1ed2b48226 Mon Sep 17 00:00:00 2001 From: LittleSheep <littlesheep.code@hotmail.com> Date: Sun, 23 Mar 2025 16:15:34 +0800 Subject: [PATCH] :sparkles: Captcha gateway provide postMessage for better compability --- templates/captcha.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/captcha.tmpl b/templates/captcha.tmpl index 3955bb6..3e57055 100644 --- a/templates/captcha.tmpl +++ b/templates/captcha.tmpl @@ -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)}`;