Skip to content

Commit f64bf3c

Browse files
committed
fix: splice instead of manipulating the length
1 parent e65583a commit f64bf3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const hCaptchaScripts = [];
1212
let lastLoadFailed = false;
1313

1414
export function resetLoader(scriptLocation?: HTMLElement) {
15-
hCaptchaScripts.length = 0; // Clears promises
15+
hCaptchaScripts.splice(0); // Clears promises
1616

1717
const element = getMountElement(scriptLocation);
1818
const frame: any = getFrame(element);

0 commit comments

Comments
 (0)