Skip to content

Commit

Permalink
fix(secure-api): Do not clean up secure api script (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
brdlyptrs authored Feb 14, 2024
1 parent 270420c commit bb0abf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function fetchScript({

const onComplete = (event, callback) => {
try {
if (cleanup) {
if (!secureApi && cleanup) {
element.removeChild(script);
}
callback(event);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hcaptcha/loader",
"description": "This is a JavaScript library to easily configure the loading of the hCaptcha JS client SDK with built-in error handling.",
"version": "1.2.0",
"version": "1.2.1",
"author": "hCaptcha team and contributors",
"license": "MIT",
"keywords": [
Expand Down

0 comments on commit bb0abf3

Please sign in to comment.