From cfd7cb775f85e340caaea445a837dee2fccb0c84 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 20 Jul 2024 15:16:14 +0300 Subject: [PATCH] bridgev2: update definition of extract_js --- bridgev2/login.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridgev2/login.go b/bridgev2/login.go index 0735049b..2e2b1d84 100644 --- a/bridgev2/login.go +++ b/bridgev2/login.go @@ -145,8 +145,8 @@ type LoginCookiesParams struct { // The fields that are needed for this cookie login. Fields []LoginCookieField `json:"fields"` // A JavaScript snippet that can extract some or all of the fields. - // The snippet will call `window.mautrixLoginCallback` with the extracted fields after they appear. - // Fields that are not present in the callback must be extracted another way. + // The snippet will evaluate to a promise that resolves when the relevant fields are found. + // Fields that are not present in the promise result must be extracted another way. ExtractJS string `json:"extract_js,omitempty"` }