mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-30 19:04:29 +00:00
Merge "Turnstile's response field uses a static name instead of IDs"
This commit is contained in:
commit
d9d71e173e
|
@ -41,7 +41,7 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( () => {
|
||||||
// Register extra fields
|
// Register extra fields
|
||||||
target.saveFields.wpCaptchaWord = function () {
|
target.saveFields.wpCaptchaWord = function () {
|
||||||
// eslint-disable-next-line no-jquery/no-global-selector
|
// eslint-disable-next-line no-jquery/no-global-selector
|
||||||
return $( '#cf-turnstile-response' ).val();
|
return $( 'input[ name="cf-turnstile-response" ]' ).val();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getReadyPromise()
|
this.getReadyPromise()
|
||||||
|
|
Loading…
Reference in a new issue