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

Commit 30045aa

Browse files
committed
delete unnecessary key argument in registerJsFile and registerJs
1 parent 48cbc95 commit 30045aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/ReCaptcha.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ public function run()
109109

110110
$view->registerJsFile(
111111
self::JS_API_URL . '?' . $arguments,
112-
['position' => $view::POS_END, 'async' => true, 'defer' => true],
113-
'recaptcha-api'
112+
['position' => $view::POS_END, 'async' => true, 'defer' => true]
114113
);
115114
$view->registerJs(
116115
<<<'JS'
@@ -153,7 +152,7 @@ function recaptchaOnloadCallback() {
153152
});
154153
}
155154
JS
156-
, $view::POS_END, 'recaptcha-onload');
155+
, $view::POS_END);
157156

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

0 commit comments

Comments
 (0)