From 30045aa93e6dd398ff4d0b919c0796984569b54d Mon Sep 17 00:00:00 2001 From: himiklab Date: Thu, 8 Nov 2018 12:49:58 +0300 Subject: [PATCH] delete unnecessary key argument in registerJsFile and registerJs --- src/ReCaptcha.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ReCaptcha.php b/src/ReCaptcha.php index 94dde19..4530378 100644 --- a/src/ReCaptcha.php +++ b/src/ReCaptcha.php @@ -109,8 +109,7 @@ public function run() $view->registerJsFile( self::JS_API_URL . '?' . $arguments, - ['position' => $view::POS_END, 'async' => true, 'defer' => true], - 'recaptcha-api' + ['position' => $view::POS_END, 'async' => true, 'defer' => true] ); $view->registerJs( <<<'JS' @@ -153,7 +152,7 @@ function recaptchaOnloadCallback() { }); } JS - , $view::POS_END, 'recaptcha-onload'); + , $view::POS_END); if (Yii::$app->request->isAjax) { $view->registerJs(<<<'JS'