Skip to content

Commit

Permalink
Add api.js locally
Browse files Browse the repository at this point in the history
  • Loading branch information
jDanek committed Aug 26, 2023
1 parent a831922 commit ecee872
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/extend/hcaptcha/event/head_assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
if (User::isLoggedIn()) {
return;
}
$args['js_before'] .= '<script src="https://hcaptcha.com/1/api.js" async defer></script>' . "\n";
$args['js_before'] .= '<script src="' . $this->getAssetPath('public/js/api.js') . '" async defer></script>' . "\n";
};
7 changes: 7 additions & 0 deletions plugins/extend/hcaptcha/public/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
Loading

0 comments on commit ecee872

Please sign in to comment.