File tree Expand file tree Collapse file tree 3 files changed +22
-25
lines changed
ReCaptchaFrontendUi/view/frontend/web/js
Securitytxt/Test/Mftf/Test Expand file tree Collapse file tree 3 files changed +22
-25
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ define(
34
34
* @private
35
35
*/
36
36
_loadApi : function ( ) {
37
- var element , scriptTag ;
38
-
39
37
if ( this . _isApiRegistered !== undefined ) {
40
38
if ( this . _isApiRegistered === true ) {
41
39
$ ( window ) . trigger ( 'recaptchaapiready' ) ;
@@ -81,7 +79,8 @@ define(
81
79
$parentForm ,
82
80
$wrapper ,
83
81
$reCaptcha ,
84
- widgetId ;
82
+ widgetId ,
83
+ parameters ;
85
84
86
85
if ( this . captchaInitialized ) {
87
86
return ;
@@ -105,7 +104,7 @@ define(
105
104
$parentForm = $wrapper . parents ( 'form' ) ;
106
105
me = this ;
107
106
108
- let parameters = _ . extend (
107
+ parameters = _ . extend (
109
108
{
110
109
'callback' : function ( token ) { // jscs:ignore jsDoc
111
110
me . reCaptchaCallback ( token ) ;
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
define ( [ ] , function ( ) {
7
- 'use strict' ;
7
+ 'use strict' ;
8
8
9
- var scriptTagAdded = false ;
9
+ var scriptTagAdded = false ;
10
10
11
- return {
12
- /**
13
- * Add script tag. Script tag should be added once
14
- */
15
- addReCaptchaScriptTag : function ( ) {
16
- var element ,
17
- scriptTag ;
11
+ return {
12
+ /**
13
+ * Add script tag. Script tag should be added once
14
+ */
15
+ addReCaptchaScriptTag : function ( ) {
16
+ var element , scriptTag ;
18
17
19
- if ( ! scriptTagAdded ) {
20
- element = document . createElement ( 'script' ) ;
21
- scriptTag = document . getElementsByTagName ( 'script' ) [ 0 ] ;
18
+ if ( ! scriptTagAdded ) {
19
+ element = document . createElement ( 'script' ) ;
20
+ scriptTag = document . getElementsByTagName ( 'script' ) [ 0 ] ;
22
21
23
- element . async = true ;
24
- element . src = 'https://www.google.com/recaptcha/api.js' +
25
- '?onload=globalOnRecaptchaOnLoadCallback&render=explicit' ;
22
+ element . async = true ;
23
+ element . src = 'https://www.google.com/recaptcha/api.js' +
24
+ '?onload=globalOnRecaptchaOnLoadCallback&render=explicit' ;
26
25
27
- scriptTag . parentNode . insertBefore ( element , scriptTag ) ;
28
- scriptTagAdded = true ;
29
- }
26
+ scriptTag . parentNode . insertBefore ( element , scriptTag ) ;
27
+ scriptTagAdded = true ;
30
28
}
31
29
}
32
- }
33
- ) ;
30
+ } ;
31
+ } ) ;
Original file line number Diff line number Diff line change 21
21
<magentoCLI command =" config:set {{DisableSecurityTxt.path}} {{DisableSecurityTxt.value}}" stepKey =" disableSecurityTxt" />
22
22
</after >
23
23
24
- <actionGroup ref =" LoginAsAdmin " stepKey =" LoginAsAdmin" />
24
+ <actionGroup ref =" AdminLoginActionGroup " stepKey =" LoginAsAdmin" />
25
25
<actionGroup ref =" FillSecurityTxtConfigurationActionGroup" stepKey =" fillSecurityTxtConfiguration" />
26
26
<actionGroup ref =" AssertFullSecurityTxtConfiguration" stepKey =" assertSecurityTxtContent" />
27
27
<actionGroup ref =" OpenSecurityTxtSignaturePage" stepKey =" openSecurityTxtSignature" />
You can’t perform that action at this time.
0 commit comments