Skip to content

Commit

Permalink
fix(secure-api): Do not clean up secure api script
Browse files Browse the repository at this point in the history
  • Loading branch information
brdlyptrs committed Feb 14, 2024
1 parent 270420c commit d9365ab
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit d9365ab

Please sign in to comment.