Skip to content

Commit d5ac5dc

Browse files
authored
Update GoogleReCaptchaV3.php
1 parent b5eb199 commit d5ac5dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GoogleReCaptchaV3.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function prepareBackgroundViewData()
6969
return [
7070
'publicKey' => $this->getConfig()->getSiteKey(),
7171
'display' => $this->getConfig()->getBackgroundBadgeDisplay(),
72+
'apiJsUrl' => $this->getConfig()->getApiJsUrl(),
7273
];
7374
}
7475

@@ -83,6 +84,7 @@ public function init()
8384
$default = [
8485
'hasAction' => self::$hasAction,
8586
'backgroundMode' => $this->getConfig()->shouldEnableBackgroundMode(),
87+
'apiJsUrl' => $this->getConfig()->getApiJsUrl(),
8688
];
8789

8890
return app('view')->make($this->getView(), array_merge($this->prepareData(), $default));

0 commit comments

Comments
 (0)