mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 09:30:06 +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
|
||||
target.saveFields.wpCaptchaWord = function () {
|
||||
// eslint-disable-next-line no-jquery/no-global-selector
|
||||
return $( '#cf-turnstile-response' ).val();
|
||||
return $( 'input[ name="cf-turnstile-response" ]' ).val();
|
||||
};
|
||||
|
||||
this.getReadyPromise()
|
||||
|
|
Loading…
Reference in a new issue