diff --git a/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js b/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js
index 0321bf70..63688881 100644
--- a/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js
+++ b/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js
@@ -34,8 +34,6 @@ define(
* @private
*/
_loadApi: function () {
- var element, scriptTag;
-
if (this._isApiRegistered !== undefined) {
if (this._isApiRegistered === true) {
$(window).trigger('recaptchaapiready');
@@ -81,7 +79,8 @@ define(
$parentForm,
$wrapper,
$reCaptcha,
- widgetId;
+ widgetId,
+ parameters;
if (this.captchaInitialized) {
return;
@@ -105,7 +104,7 @@ define(
$parentForm = $wrapper.parents('form');
me = this;
- let parameters = _.extend(
+ parameters = _.extend(
{
'callback': function (token) { // jscs:ignore jsDoc
me.reCaptchaCallback(token);
diff --git a/ReCaptchaFrontendUi/view/frontend/web/js/reCaptchaScriptLoader.js b/ReCaptchaFrontendUi/view/frontend/web/js/reCaptchaScriptLoader.js
index 5f17a32f..94746c33 100644
--- a/ReCaptchaFrontendUi/view/frontend/web/js/reCaptchaScriptLoader.js
+++ b/ReCaptchaFrontendUi/view/frontend/web/js/reCaptchaScriptLoader.js
@@ -4,30 +4,28 @@
*/
define([], function () {
- 'use strict';
+ 'use strict';
- var scriptTagAdded = false;
+ var scriptTagAdded = false;
- return {
- /**
- * Add script tag. Script tag should be added once
- */
- addReCaptchaScriptTag: function () {
- var element,
- scriptTag;
+ return {
+ /**
+ * Add script tag. Script tag should be added once
+ */
+ addReCaptchaScriptTag: function () {
+ var element, scriptTag;
- if (!scriptTagAdded) {
- element = document.createElement('script');
- scriptTag = document.getElementsByTagName('script')[0];
+ if (!scriptTagAdded) {
+ element = document.createElement('script');
+ scriptTag = document.getElementsByTagName('script')[0];
- element.async = true;
- element.src = 'https://www.google.com/recaptcha/api.js' +
- '?onload=globalOnRecaptchaOnLoadCallback&render=explicit';
+ element.async = true;
+ element.src = 'https://www.google.com/recaptcha/api.js' +
+ '?onload=globalOnRecaptchaOnLoadCallback&render=explicit';
- scriptTag.parentNode.insertBefore(element, scriptTag);
- scriptTagAdded = true;
- }
+ scriptTag.parentNode.insertBefore(element, scriptTag);
+ scriptTagAdded = true;
}
}
- }
-);
+ };
+});
diff --git a/Securitytxt/Test/Mftf/Test/SecurityTxtWithCorrectConfiguration.xml b/Securitytxt/Test/Mftf/Test/SecurityTxtWithCorrectConfiguration.xml
index 91df0d85..f25ed1ab 100644
--- a/Securitytxt/Test/Mftf/Test/SecurityTxtWithCorrectConfiguration.xml
+++ b/Securitytxt/Test/Mftf/Test/SecurityTxtWithCorrectConfiguration.xml
@@ -21,7 +21,7 @@
-
+