From d9365ab0df5a2fb890f9668f8cd7e371f1c060f0 Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Wed, 14 Feb 2024 14:46:31 -0800 Subject: [PATCH 1/2] fix(secure-api): Do not clean up secure api script --- lib/src/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/script.ts b/lib/src/script.ts index 4e75055..f1cc955 100644 --- a/lib/src/script.ts +++ b/lib/src/script.ts @@ -34,7 +34,7 @@ export function fetchScript({ const onComplete = (event, callback) => { try { - if (cleanup) { + if (!secureApi && cleanup) { element.removeChild(script); } callback(event); From 65bbb9ad2c734c2de2422e50b32ec3b1c300db55 Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Wed, 14 Feb 2024 14:48:10 -0800 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c878f0..e84012b 100644 --- a/package.json +++ b/package.json @@ -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": [