Commit 81675ccb authored by Nguyen Van Anh's avatar Nguyen Van Anh Committed by GitHub

Rollback #57

parent d6d559f9
...@@ -29,11 +29,6 @@ class NoCaptcha ...@@ -29,11 +29,6 @@ class NoCaptcha
*/ */
protected $http; protected $http;
/**
* API requested control
*/
protected $api_requested = false;
/** /**
* NoCaptcha. * NoCaptcha.
* *
...@@ -61,11 +56,7 @@ class NoCaptcha ...@@ -61,11 +56,7 @@ class NoCaptcha
{ {
$attributes['data-sitekey'] = $this->sitekey; $attributes['data-sitekey'] = $this->sitekey;
$html = ''; $html = '<script src="'.$this->getJsLink($lang).'" async defer></script>'."\n";
if (empty($this->api_requested)) {
$this->api_requested = true;
$html .= '<script src="'.$this->getJsLink($lang).'" async defer></script>'."\n";
}
$html .= '<div class="g-recaptcha"'.$this->buildAttributes($attributes).'></div>'; $html .= '<div class="g-recaptcha"'.$this->buildAttributes($attributes).'></div>';
return $html; return $html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment