Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
delete unnecessary key argument in registerJsFile and registerJs
Browse files Browse the repository at this point in the history
  • Loading branch information
himiklab committed Nov 8, 2018
1 parent 48cbc95 commit 30045aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ReCaptcha.php
Expand Up @@ -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'
Expand Down Expand Up @@ -153,7 +152,7 @@ function recaptchaOnloadCallback() {
});
}
JS
, $view::POS_END, 'recaptcha-onload');
, $view::POS_END);

if (Yii::$app->request->isAjax) {
$view->registerJs(<<<'JS'
Expand Down

0 comments on commit 30045aa

Please sign in to comment.