Skip to content

Commit

Permalink
fix semicolon in hiden attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
albertcht authored Jan 26, 2021
1 parent 23f90ec commit 8e31515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InvisibleReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function renderCaptchaHTML()
{
$html = '<div id="_g-recaptcha"></div>' . PHP_EOL;
if ($this->getOption('hideBadge', false)) {
$html .= '<style>.grecaptcha-badge{display:none;!important}</style>' . PHP_EOL;
$html .= '<style>.grecaptcha-badge{display:none !important;}</style>' . PHP_EOL;
}

$html .= '<div class="g-recaptcha" data-sitekey="' . $this->siteKey .'" ';
Expand All @@ -140,7 +140,7 @@ public function renderFooterJS($lang = null, $nonce = null)
$html .= "function _loadCaptcha(){";
if ($this->getOption('hideBadge', false)) {
$html .= "_captchaBadge=document.querySelector('.grecaptcha-badge');";
$html .= "if(_captchaBadge){_captchaBadge.style = 'display:none;!important';}" . PHP_EOL;
$html .= "if(_captchaBadge){_captchaBadge.style = 'display:none !important;';}" . PHP_EOL;
}
$html .= '_captchaForm=document.querySelector("#_g-recaptcha").closest("form");';
$html .= "_captchaSubmit=_captchaForm.querySelector('[type=submit]');";
Expand Down

0 comments on commit 8e31515

Please sign in to comment.