Skip to content

Commit

Permalink
Update GoogleReCaptchaV3.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanDaDeng authored Apr 25, 2019
1 parent b5eb199 commit d5ac5dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GoogleReCaptchaV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function prepareBackgroundViewData()
return [
'publicKey' => $this->getConfig()->getSiteKey(),
'display' => $this->getConfig()->getBackgroundBadgeDisplay(),
'apiJsUrl' => $this->getConfig()->getApiJsUrl(),
];
}

Expand All @@ -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));
Expand Down

0 comments on commit d5ac5dc

Please sign in to comment.