diff --git a/src/GoogleReCaptchaV3.php b/src/GoogleReCaptchaV3.php index a5f15e1..09e1d97 100644 --- a/src/GoogleReCaptchaV3.php +++ b/src/GoogleReCaptchaV3.php @@ -69,6 +69,7 @@ public function prepareBackgroundViewData() return [ 'publicKey' => $this->getConfig()->getSiteKey(), 'display' => $this->getConfig()->getBackgroundBadgeDisplay(), + 'apiJsUrl' => $this->getConfig()->getApiJsUrl(), ]; } @@ -83,6 +84,7 @@ public function init() $default = [ 'hasAction' => self::$hasAction, 'backgroundMode' => $this->getConfig()->shouldEnableBackgroundMode(), + 'apiJsUrl' => $this->getConfig()->getApiJsUrl(), ]; return app('view')->make($this->getView(), array_merge($this->prepareData(), $default));